bwplot: Box and Whisker Plot

View source: R/bwplot.R

bwplotR Documentation

Box and Whisker Plot

Description

Create a box and whisker plot for a numerical variable.

Usage

bwplot(x, data, color = "blue", ...)

Arguments

x

Formula. An expression of the form ~ x | z where x is the variable we want to make boxplots for and z is a second, optional, variable we would like to use for faceting. Alternatively, one could also use the form z ~ x or x ~ z to change how the faceted boxplot is displayed.

data

Data frame. The data where the variables can be found.

Examples

data(cdc)
bwplot(~height, data = cdc)
bwplot(~height | gender, data = cdc)
bwplot(gender ~ height, data = cdc)
bwplot(height ~ gender, data = cdc)


mobilizingcs/mobilizr documentation built on Feb. 17, 2024, 7:49 p.m.