boxplot {base} | R Documentation |
boxplot(..., range = 1.5, width = NULL, varwidth = FALSE,
notch = FALSE, names, data = sys.frame(sys.parent()),
plot = TRUE, border = par("fg"), col = NULL, log = "",
pars = NULL)
... |
the data from which the boxplots are to be produced. The
data can be specified as separate vectors, each corresponding to a
component boxplot, or as a single list containing such vectors.
Alternatively a symbolic specification of the form |
range |
this determines how far the plot whiskers extend out from
the box. If |
width |
a vector giving the relative widths of the boxes making up the plot. |
varwidth |
if |
notch |
if |
names |
group labels which while be printed under each boxplot. |
data |
??? |
plot |
if |
border |
an optional vector of colors for the outlines of the
boxplots. The values in |
col |
if |
log |
??? |
pars |
??? |
... |
graphical parameters can also be passed as arguments to
|
This function is usually invoked for its side effect which is to produce box-and-whisker plots of the given values. However, it also returns a list with one component corresponding to each plot. The components are themselves lists with named components as follows:
stats |
a vector containing the extreme of the lower whisker, the lower hinge, the median, the upper hinge and the extreme of the upper whisker. |
n |
the number of observations in the sample. |
conf |
the lower and upper extremes of the notch. |
out |
the values of any data points which lie beyond the extremes of the whiskers. |
boxplot.stats
which does the computation,
bxp
for the plotting.
data(insects)
boxplot(count ~ spray, data = insects, col = "lightgray")