Plot violin plots the cool way.
1 2 3 4 5 6 7 8 9 | vioplotCM(x, ..., range = 1.5, h = NULL, ylim = NULL, names = NULL,
horizontal = FALSE, col = "cornflowerblue", border = "black",
lty = 1, lwd = 1, rectCol = "black", colMed = "white",
pchMed = 19, at, add = FALSE, wex = 1, drawRect = TRUE,
na.fun = na.omit, drawMean = T, mnLty = 2, mnLwd = 1.5,
mnCol = "black", mnLength = NULL, main = "", mainLine = 1,
maincex = 1.5, nameCex = 1, xlab = "", xlabLine = 2,
xlabcex = 1.1, ylab = NULL, ylabLine = 2.5, ylabcex = 1.3,
labelMeans = F, mnsDigits = 2)
|
x |
A vector of values to vioplot. |
... |
More vectors of values to vioplot. |
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 (vector of length 2). |
names |
An optional character vector of labels for each set of values to be vioplotted. If omitted, they are generated from the variable names. |
horizontal |
Logical, make it horizontal or vertical. |
col |
A recycled vector of colors for the vioplots themselves. |
border, rectCol |
Colors for the things. |
lty, lwd |
Graphical paramters when drawing the lines. |
colMed, pchMed |
Graphical paramters for the symbol representing the median. |
at |
The position of each violin. Defaults to 1:n, where n is the number of vectors being vioplotted. |
add |
If FALSE (default) a new plot is created. |
wex |
Relative expansion of the violin. |
drawRect |
Put on a rectangle on it? |
na.fun |
Defaults to |
drawMean |
Should a line be drawn for each mean? |
mnLty, mnLwd, mnCol |
Graphical paramters for drawing the mean line. |
mnLength |
The length of the mean line in plot units. Defaults to something sensible. |
main |
Plot main title. |
mainLine, maincex |
Graphical parameters for the main title. |
nameCex |
Relative size of the category labels. |
xlab |
A title for the x-axis placed underneath the category labels. |
xlabLine, xlabCex |
Graphical parameters for the x-axis label. |
ylab |
An optional label for the y-axis. |
ylabLine, ylabCex |
Graphical paramters for the y-axis label. |
labelMeans |
Logical. If true, the means for each group will be
calculated and added in parentheses to the |
mnsDigits |
The number of digits to round the means values to. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.