Formula Notation for Boxplots
Usage
boxplot.formula(formula, data = NULL, subset, na.action, ...)
Arguments
formula
|
a formula, such as y ~ x .
|
data
|
a data.frame (or list) from which the variables in
formula should be taken.
|
subset
|
an optional vector specifying a subset of observations
to be used in the fitting process.
|
na.action
|
a function which indicates what should happen when
the data contain NA s.
|
...
|
further arguments to the default boxplot method and
graphical parameters may also be passed as arguments, see
boxplot.default and par .
|
Description
Produces side by side boxplots from a number of vectors, using
formula notation.Details
This is a method of the generic function boxplot
. It
operates by setting up the data from the formula specification, and
then calling boxplot.default
.See Also
boxplot
,
boxplot.default
.Examples
data(OrchardSprays)
boxplot(decrease ~ treatment, data = OrchardSprays, log = "y", col = "bisque")