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.
-------------
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
--------------------
Yes, I know that. But I do not know how to make that work in gretl...
Also there is another problem, regarding the "scaling" of the violin plots. Has
anybody a nice idea of how to scale the plots relatively to each other, such that they are
sufficiently bound in the x dimension (say, between +- 0.9 relative to the origin)?
Attached is a new version with a working function and a test package, as far as I am...