Skip to content

violinplot options

3 messages · Tanja Zseby, Uwe Ligges, Henric Nilsson

#
Hi,

I am using the function  vioplot() to generate violin plots. Now I would 
like to add a label to the y axix and a title to the diagram.
Just setting ylab didnt work. Is it possible to set such options for the 
function ?
I tried also with the function simple.violinplot, but also with this I 
couldnt set the options.

Kind Regards
Tanja
#
Tanja Zseby wrote:

            
Looks like nobody else has responded so far.
If you are talking about the function in the package also called 
"vioplot": The function is not very well designed. But since there is 
not much code in it, it is quite easy to add additional functionality 
yourself by adapting the whole function.

Uwe Ligges
#
At 10:55 2004-11-17 +0100, Uwe Ligges wrote:

            
I actually wrote something, but forgot to send it...
That's the ambitious approach!

Tanja: If you just want to add the title and y axis label, the title 
function suffices. E.g.

 > library(vioplot)
 > vioplot(runif(10))
 > title(main = "A title", ylab = "The y label")

HTH,
Henric