boxplot_bw | R Documentation |
Boxplot incluyendo puntos individuales
boxplot_bw( y, group = NULL, dat, las = 0, title.plot = NULL, sub.plot = NULL, ylim.plot = NULL, cex.lab = 1, cex.main = 1, cex.pval = 0.6, cex.n = 0.5, ylab = "", xlab = NULL, do.test = FALSE, color = NULL, bw = TRUE, show.n = T )
y |
name numeric vector of data values. |
group |
name factor vector. Default value is NULL. |
dat |
matrix or data frame containing the variables in the formula. |
las |
numeric in 0,1,2,3; the style of axis labels. 0: always parallel to the axis [default], 1: always horizontal, 2:always perpendicular to the axis, 3: always vertical. |
title.plot |
a main title for the plot |
sub.plot |
a sub title for the plot |
ylim.plot |
is vector which contains lower and upper limits which are to appear on the y axes. |
cex.lab |
size of the axis label text with a numeric value. |
cex.main |
expansion factor for main names (size main) |
cex.pval |
size of the p-value text with a numeric value. |
cex.n |
expansion factor for size n |
ylab |
a title for the y axis |
xlab |
a title for the x axis. |
do.test |
logical value si se quiere realizar test kruskall Wallis. |
bw |
logical value for beeswarm |
Miriam Mota mmota.foix@gmail.com
df <- data.frame(runif = c(runif(100, min = -3, max = 3), rep(0,25)), rnorm = c(rnorm(100),rep(0,25)) ) boxplot_bw(dat = df, y = 'rnorm' ) boxplot_bw(dat = mtc_bis, y = 'qsec', title.plot = "Title" ) boxplot_bw(dat = mtc_bis, y = 'qsec', group = 'gear', title.plot = "Boxplot per grup", do.test = TRUE, las = 2) boxplot_bw(dat = df, y = 'rnorm', bw = FALSE ) boxplot_bw(dat = mtc_bis, y = 'qsec', title.plot = "Title", bw = FALSE ) boxplot_bw(dat = mtc_bis, y = 'qsec', group = 'gear', title.plot = "Boxplot per grup", do.test = TRUE, las = 2, bw = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.