Create boxplots with ggplot2.
bboxplot(y, ...) # S3 method for default bboxplot(y, g, data, ...) # S3 method for 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
.
bboxplot("valor", "padrao", centro_2015)bboxplot(valor~padrao, centro_2015)bboxplot(~valor, centro_2015)