For what I understand from the example provided by gnuplot doc they
actually re-plot the box images over the violin ones.
################gnuplot code#########################
set title 'Superimposed violin plot and box plot'
set style fill solid bo -1
set boxwidth 0.075
set errorbars lt black lw 1
replot $viol2 using (1):2 with boxplot fc "white" lw 2, \
$viol1 using (3):2 with boxplot fc "white" lw
###########################################################
Great idea with the package!
Mihai
On Wed, Jun 21, 2017 at 3:37 PM, <gretl-users-request(a)lists.wfu.edu> wrote:
Send Gretl-users mailing list submissions to
gretl-users(a)lists.wfu.edu
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.wfu.edu/mailman/listinfo/gretl-users
or, via email, send a message with subject or body 'help' to
gretl-users-request(a)lists.wfu.edu
You can reach the person managing the list at
gretl-users-owner(a)lists.wfu.edu
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gretl-users digest..."
Today's Topics:
1. Re: boxplot of matrix (Schaff, Frederik)
2. Violin plot with box plot (Schaff, Frederik)
3. Re: Violin plot with box plot (Logan Kelly)
----------------------------------------------------------------------
Message: 1
Date: Wed, 21 Jun 2017 03:19:53 +0000
From: "Schaff, Frederik" <Frederik.Schaff(a)fernuni-hagen.de>
To: "r.lucchetti(a)univpm.it" <r.lucchetti(a)univpm.it>, Gretl list
<gretl-users(a)lists.wfu.edu>
Subject: Re: [Gretl-users] boxplot of matrix
Message-ID:
<94DD4923F1D1534189901CE4E97BB72E4F42179F@Ymir.
buerokommunikation.fernuni-hagen.de>
Content-Type: text/plain; charset="us-ascii"
> > Dear gretl users,
> >
> > I have created a matrix with 4 columns and 1000 rows and now I'd like
> > to use the boxplot command on it, but it is (despite it should) not
> > working... what am I getting wrong? Here is a MWE:
> >
> > ----------
> > nulldata 1000
> > matrix A=zeros(1000,4)
> > loop for r=1..1000
> > loop for c=1..4
> > A[r,c]= randgen1(u,0,c)
> > endloop
> > endloop
> >
> > boxplot --matrix=A --output=display
> > ------------
> > Error msg:
> > ? boxplot --matrix=A --output=display
> > Command has insufficient arguments
> >
>
> You have to tell boxplot which columns of the matrix you want plotted. In
> your case, I suspect that what you want is
>
> <hansl>
> boxplot 1 2 3 4 --matrix=A --output=display </hansl>
>
> Also: you may want to use the --quiet option for loops ;)
>
That's it, many thanks! The quick-help documentation needs an update than,
I guess:
"Generally, the argument varlist is required, and refers to one or more
series in the current dataset (given either by name or ID number). But if a
named matrix is supplied via the --matrix option this argument becomes
optional: by default a plot is drawn for each column of the specified
matrix."
To me this implies that I do not need to specify the columns. This option
is not even mentioned.
-Frederik
------------------------------
Message: 2
Date: Wed, 21 Jun 2017 12:23:43 +0000
From: "Schaff, Frederik" <Frederik.Schaff(a)fernuni-hagen.de>
To: "Gretl list (gretl-users(a)lists.wfu.edu)"
<gretl-users(a)lists.wfu.edu>
Subject: [Gretl-users] Violin plot with box plot
Message-ID:
<94DD4923F1D1534189901CE4E97BB72E4F421C35@Ymir.
buerokommunikation.fernuni-hagen.de>
Content-Type: text/plain; charset="us-ascii"
Hello,
some time back, Jack helped me produce a violin plot and suggested to make
a function of it. Now I am trying to do so. However, I would like to add a
box-plot "within" the violin, because the extreme points (e.g.) are not
correctly displayed in a violin plot. See here for an original gnuplot
examples:
http://gnuplot.sourceforge.net/demo_cvs/violinplot.html
The "template" script I have attached is working for generating a box-plot
or a violin plot, but I have no idea how I can merge them.
Any idea? Is it possible to somehow "see" the internals of the boxplot
function? For then I should be able to copy & paste things such that it
works.
Many thanks
Frederik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.wfu.edu/pipermail/gretl-users/
attachments/20170621/729a229e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: violin_with_box.inp
Type: application/octet-stream
Size: 2294 bytes
Desc: violin_with_box.inp
URL: <
http://lists.wfu.edu/pipermail/gretl-users/
attachments/20170621/729a229e/attachment-0001.obj>
------------------------------
Message: 3
Date: Wed, 21 Jun 2017 12:37:08 +0000
From: Logan Kelly <logan.kelly(a)uwrf.edu>
To: "'Gretl list'" <gretl-users(a)lists.wfu.edu>
Subject: Re: [Gretl-users] Violin plot with box plot
Message-ID:
<DM5PR03MB285753E110EFB7D13420933784DA0@DM5PR03MB2857.
namprd03.prod.outlook.com>
Content-Type: text/plain; charset="us-ascii"
Apologies for a superfluous post, but those plots are beautiful.
Logan
From: gretl-users-bounces(a)lists.wfu.edu [mailto:gretl-users-bounces@
lists.wfu.edu] On Behalf Of Schaff, Frederik
Sent: Wednesday, June 21, 2017 7:24 AM
To: Gretl list (gretl-users(a)lists.wfu.edu) <gretl-users(a)lists.wfu.edu>
Subject: [Gretl-users] Violin plot with box plot
Hello,
some time back, Jack helped me produce a violin plot and suggested to make
a function of it. Now I am trying to do so. However, I would like to add a
box-plot "within" the violin, because the extreme points (e.g.) are not
correctly displayed in a violin plot. See here for an original gnuplot
examples:
http://gnuplot.sourceforge.net/demo_cvs/violinplot.html
The "template" script I have attached is working for generating a box-plot
or a violin plot, but I have no idea how I can merge them.
Any idea? Is it possible to somehow "see" the internals of the boxplot
function? For then I should be able to copy & paste things such that it
works.
Many thanks
Frederik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.wfu.edu/pipermail/gretl-users/
attachments/20170621/1882dbd9/attachment.html>
------------------------------
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users
End of Gretl-users Digest, Vol 125, Issue 10
********************************************