Drawing a violinplot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | vioplotn(
x = NULL,
formula = NULL,
data = NULL,
...,
las = 1,
xlab = NULL,
ylab = NULL,
names = NULL,
xlim = NULL,
ylim = NULL,
xaxt = "s",
yaxt = "s",
adjust = 1,
cex.axis = 1.1,
cex.lab = 1.3,
font.lab = 2,
pch.dot = 16,
pch.stat = 21,
cex.dot = 0.5,
cex.stat = 1,
scale = "area",
staplelwd = NA,
boxwex = 0.1,
notch = F,
density = NA,
angle = 45,
col.fill = NULL,
col.mar = NULL,
col.box = "#FFFFFF",
col.bor = "#000000",
col.stat = NULL,
col.dot = NULL,
col.bg = "#FFFFFF",
lwd.mar = 1,
lwd.bor = 1,
lwd.stat = 1,
lwd.dot = 1,
Mean = F,
SE = F,
SD = F,
boxplot = T,
outline = F,
all = T,
jitter.method = "jitter",
add = F,
trim = F,
horizontal = F,
side = "both",
side.sp = 0.05,
noise = 1,
reflect = T,
legend = F,
pos.leg = "outright",
pch.leg = 22,
bty.leg = "n",
bg.leg = "transparent",
pt.cex.leg = 2,
tx.cex.leg = 1.1,
pt.col.leg = NULL,
pt.bg.leg = NULL,
tx.col.leg = NULL,
leg.lab = NULL,
leg.sp = 2.5,
inset = 1,
leg.title = NULL,
tit.col.leg = NULL,
mar = c(2, 3.8, 1, 1),
mgp = c(2.5, 0.5, 0),
tcl = -0.2,
inversion = F,
inv.col = "#FFFFFF"
)
|
x |
Data, e.g. numeric vector, formula, e.g. y ~ x, or other object containing analysis result |
formula |
formula |
data |
If formula is inputted in "x" or "formula" parameter, a data.frame (or list) from which the variables in formula should be taken. |
... |
Argument to be passed to methods. Please see boxplot(). |
las |
las, defauls is 1 |
xlab |
x label |
ylab |
y label |
names |
names |
xlim |
x limit |
ylim |
y limit |
xaxt |
xaxt, default is "s". |
yaxt |
yaxt, default is "s". |
adjust |
Adjust of density curve, default is 1. |
cex.axis |
axis cex, default is 1.1 |
cex.lab |
label cex, default is 1.3 |
font.lab |
label font size, default is 2 |
pch.dot |
points pch, default is 16 |
pch.stat |
mean points pch, default is 21 |
cex.dot |
points cex, default is 0.5 |
cex.stat |
mean points cex, default is 1 |
scale |
Max width of density curve, "area", "width" and numeric number are able to select. |
staplelwd |
staplelwd, default is "NA". |
boxwex |
boxwex, default is 0.5. |
notch |
notch, default is "F". |
density |
Density of violin fill |
angle |
Angle of violin fill stripe, default is 45 degree. |
col.fill |
violin fill color |
col.mar |
violin border color |
col.box |
box fill color |
col.bor |
box border color |
col.stat |
Mean and error bar color |
col.dot |
points color |
col.bg |
background color |
lwd.mar |
violin border lwd, default is 1 |
lwd.bor |
box border lwd, default is 1 |
lwd.stat |
mean and error bar lwd, default is 1 |
lwd.dot |
points lwd, default is 1 |
Mean |
If set "T", mean points are drawn. Default is "F". |
SE |
If set "T", standard error is drawn. Default is "F". |
SD |
If set "T", standard deviation is drawn. Default is "F". |
boxplot |
If set "T", boxplot is also drawn. Default is "F". |
outline |
If set "T", outliners are drawn. Default is "F". |
all |
If set "T", all points are drawn. Default is "T". |
jitter.method |
how to draw jitter, "jitter", "swarm", "center", "hex" and "square" are able to select. Default is "jitter". |
add |
If set "T", boxplot is able to overdrawn on previous boxplot. Default is "F". |
trim |
If set "T", tip of violin plot is trimmed. Default is "F". |
horizontal |
horizontal, default is "F". |
side |
Displayed half of violin and move direction of boxplot, "left", "both" and "right" are able to select. Default is "both". |
side.sp |
Magnitude of move of boxplot, default is 0.05. |
noise |
scatter level of points, default is 1 |
reflect |
If set "T", points are not drawn in next to boxplot and reflected. Default is "T". |
legend |
If legend is needed, set "T". Default is "F". |
pos.leg |
Legend position. In addition to position of legend(), "outtopright, "outright", "outbottomright" and "outbottom" are able to select. Default is "outright". |
pch.leg |
Legend pch, default is 22. |
bty.leg |
Legend box type. Default is ""n. |
bg.leg |
Legend background |
pt.cex.leg |
Points cex in legend, default is 2. |
tx.cex.leg |
Text cex in legend, default is 1.1. |
pt.col.leg |
Points color in legend. |
pt.bg.leg |
Points background color in legend. |
tx.col.leg |
Text color in legend. |
leg.lab |
Legend label |
leg.sp |
Legend space, default is 2.5. |
inset |
Legend inset, default is 1. |
leg.title |
Legend title |
tit.col.leg |
Legend title color |
mar |
mar, default is c(2,3.8,1,1). |
mgp |
mgp, default is c(2.5,0.5,0). |
tcl |
tcl, default is -0.2. |
inversion |
Inversion mode. If set "T", plot is drawn with inversion color. Default is "F". |
inv.col |
Inversion color, if set inversion = "T". Default is "#FFFFFF". |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.