bboxplot: Beautiful boxplots with ggplot2.

View source: R/bboxplot.R

bboxplotR Documentation

Beautiful boxplots with ggplot2.

Description

Create boxplots with ggplot2.

Usage

bboxplot(y, ...)

## Default S3 method:
bboxplot(y, g, data, ...)

## S3 method for class 'formula'
bboxplot(formula, data, ...)

Arguments

y

a numeric variable for which the boxplot is to be constructed.

...

further arguments passed to geom_boxplot.

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.

Value

A boxplot of the variable y or the boxplot of the y against g.

Examples

data(centro_2015)
bboxplot("valor", data = centro_2015)
bboxplot("valor", "padrao", centro_2015)
bboxplot(valor~padrao, centro_2015)
bboxplot(~valor, centro_2015)

lfpdroubi/appraiseR documentation built on April 14, 2024, 10:27 p.m.