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
violinplot options
3 messages · Tanja Zseby, Uwe Ligges, Henric Nilsson
Tanja Zseby wrote:
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
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
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
At 10:55 2004-11-17 +0100, Uwe Ligges wrote:
Looks like nobody else has responded so far.
I actually wrote something, but forgot to send it...
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.
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