Plot smoothed distribution
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
x |
data vector to plot |
... |
additional data vectors |
range |
a coefficient to calculate the upper/lower adjacent values |
h |
smoothing coefficient [estimated form data] |
ylim, |
, rectCol, colMed, pchMed, drawRect - graphical details (mostly same as in default Graphics) |
names |
one label, or a vector of labels for the datas must match the number of datas given |
horizontal |
logical. horizontal or vertical distributions [F] |
col, |
border, lty, lwd - Graphical parameters for the violin passed to lines and polygon |
at |
where to plot distributions |
add |
logical. if FALSE a new plot is created [F] |
wex |
relative expansion of the distributions. [1] |
side |
'left', 'right' or 'both' (violin plot). ['both'] |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.