Lists that contain defaults for arguments to
boxplot
and
bxp
.
These are:
bxp.splus
bxp.att
bxp.old
These can be given in the
style.bxp
argument to
boxplot
or
bxp
to
produce a specific style of boxplot.
The important features of each style are summarized below.
list(boxwex=1, boxcol=-1, medpch=16, medline=F, medlwd=1, medcol=NA, confnotch=T, confcol=-1, whisklty=4, staplelty=4, outpch=1, outline=F)
list(boxwex=1, boxcol=-1, medchar=F, medline=T, medlwd=1, medcol=NA, confnotch=T, confcol=-1, whisklty=4, staplewex=.125, staplehex=0, outchar=T, outpch=NA, outline=F)
The "splus" style contains a filled-in box with the median shown as a
band of the background color. Outliers appear as lines that are as
wide as the box.
The staples (ends of the whiskers) are also as wide as the box.
The "att" style shows the median as a filled-in octagon and outliers as
smaller non-filled octagons.
The staples are as wide as the box and dashed (actually line type
4
which is usually dashed).
This style is based on suggestions by Tukey (1990).
The "old" style represents the median as a line, and outliers as asterisks.
See
boxplot
for a description of the specific components contained in
these datasets.
Tukey, J. W. (1990). Data-based Graphics: Visual Display in the Decades to Come. Statistical Science, 5 pp. 327-339.
# note that the argument name style.bxp can not be abbreviated boxplot(rnorm(10), style.bxp = "old") boxplot(rnorm(10), style.bxp = bxp.att)