Boxplot
is a wrapper for the standard RBoxplot(y, ...)
## S3 method for class 'default':
Boxplot(y, g, labels, id.method = c("y", "identify", "none"),
id.n=10, xlab, ylab, ...)
## S3 method for class 'formula':
Boxplot(formula, data = NULL, subset, na.action = NULL, labels.,
id.method = c("y", "identify", "none"), xlab, ylab, ...)
Boxplot
will use the row names of the data
argument, if one is given, or observation numbers."y"
(the default), all outlying points are labeled; if "identify"
, points
may be labeled interactive; if "none"
, no point identification is performed.id.n
high outliers and low outliers will be identified in each group, (default, 10).Boxplot
will use the
variable names.~ 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
g
, usualllm
).boxplot
.boxplot
boxplot
Boxplot(~income, data=Prestige, id.n=Inf) # identify all outliers
Boxplot(income ~ type, data=Prestige)
with(Prestige, Boxplot(income, labels=rownames(Prestige)))
with(Prestige, Boxplot(income, type, labels=rownames(Prestige)))
Run the code above in your browser using DataLab