bboxplot | R Documentation |
Create boxplots with ggplot2.
bboxplot(y, ...)
## Default S3 method:
bboxplot(y, g, data, ...)
## S3 method for class 'formula'
bboxplot(formula, data, ...)
y |
a numeric variable for which the boxplot is to be constructed. |
... |
further arguments passed to |
g |
a grouping variable, usually a factor, for constructing parallel boxplots. |
data |
a dataframe containing the variables. |
formula |
A model formula of the form ~ y to produce a boxplot for the variable y, or of the form y ~ g to produce parallel boxplots for y within levels of the grouping variable(s) g, etc., usually factors. |
A boxplot of the variable y
or the boxplot of the y
against g
.
data(centro_2015)
bboxplot("valor", data = centro_2015)
bboxplot("valor", "padrao", centro_2015)
bboxplot(valor~padrao, centro_2015)
bboxplot(~valor, centro_2015)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.