volins {caroline} | R Documentation |
This is an improvment on the original vioplot function (combination of a box plot and a kernel density plot). You can now pass a list of violins and a list of colors.
violins(x, range = 1.5, h = NULL, ylim = NULL, names = NULL, horizontal = FALSE, col = "magenta", border = "black", lty = 1, lwd = 1, rectCol = "black", colMed = "white", pchMed = 19, at, add = FALSE, wex = 1, drawRect = TRUE, main = "vioplot")
x |
list of vectors. |
range |
a factor to calculate the upper/lower adjacent values. |
h |
the height for the density estimator, if omit as explained in sm.density, h will be set to an optimum. |
ylim |
y limits. |
names |
one label, or a vector of labels for the datas must match the number of datas given. |
horizontal |
description of var 1. |
col,border,lty,lwd |
Graphical parameters for the violin passed to lines and polygon. |
rectCol,colMed,pchMed |
Graphical parameters to control the look of the box. |
at |
position of each violin. Default to 1:n |
add |
logical. if FALSE (default) a new plot is created |
wex |
relative expansion of the violin. |
drawRect |
logical. the box is drawn if TRUE. |
main |
main title for the plot. |
vioplot