This help topic is for R version 0.90. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/boxplot.html
boxplot {base}R Documentation

Box Plots

Description

Produce box-and-whisker plot(s) of the given (grouped) values.

Usage

boxplot(x, ...)

Arguments

x

an R object.

...

methods may have additional arguments.

Details

This is a generic function. It currently has a default method (boxplot.default) and a formula interface (boxplot.formula).

Value

See the help for boxplot.default.

See Also

boxplot.default, boxplot.formula.

Examples

## boxplot on a formula:
data(InsectSprays)
boxplot(count ~ spray, data = InsectSprays, col = "lightgray")

## boxplot on a matrix:
mat <- cbind(Uni05 = (1:100)/21, Norm = rnorm(100),
             T5 = rt(100, df = 5), Gam2 = rgamma(100, shape = 2))
boxplot(data.frame(mat), main = "boxplot(data.frame(mat), main = ...)")

[Package base version 0.90 ]