Description Usage Arguments Details Value Author(s) See Also Examples
Produces a box plot of Mandel's statistics, with optional outlier labels and indicator lines for unusual values.
1 2 3 4 5 6 7 8 9 10 11  ## S3 method for class 'mandel.kh'
boxplot(x, probs=c(0.95, 0.99), main,
xlab=attr(x, "grouped.by"), ylab=attr(x, "mandel.type"),
separators=FALSE, zero.line=TRUE, ylim, p.adjust="none",
frame.plot = TRUE, horizontal=FALSE, at,
... ,
col.ind=1, lty.ind=c(2,1), lwd.ind=1,
col.sep="lightgrey", lwd.sep=1, lty.sep=1,
lwd.zero=1, col.zero=1, lty.zero=1,
outlier.labels=row.names(x), cex.lab=0.7, col.lab=1,
adj=NULL, pos=NULL, srt=0 )

x 
An object of class 
probs 
Indicator lines are drawn for these probabilities. Note that

main 
a main title for the plot. If missing, the default is

xlab 
a label for the x axis; defaults to the 
ylab 
a label for the x axis; defaults to the 
separators 
Logical; if 
zero.line 
logical; if 
ylim 
the y limits of the plot. For Mandel's k, the default lower limit for y is zero. 
p.adjust 
Correction method for probabilities. If not 
frame.plot 
Logical; If 
horizontal 
if 
at 
numeric vector giving the locations where the boxplots should
be drawn; defaults to 
... 
Other (usually graphical) parameters passed to 
col.ind, lty.ind, lwd.ind 
Graphical parameters used for the indicator lines, recyckled to 
col.sep, lwd.sep, lty.sep 
Graphical parameters used for the separator lines. 
lwd.zero, col.zero, lty.zero 
Graphical parameters used for the zero line. 
outlier.labels 
Either a logical indicating whether outliers should be labelled or a character vector of length nrow(x) giving labels. Defaults to row.names(x). 
cex.lab, col.lab 
Character size and colour for outlier labels, passed to 
adj, pos 
Position of outlier labels relative to outliers; passed to 
srt 
Label rotation, in degrees, for outlier labels; passed to 
This plot produces a box plot (using boxplot.default
) of the variables in an object of
class "mandel.kh"
.
If labels are specified for outliers (the default), outliers are first located based on the locations given by boxplot.default. WARNING: ties may be mislabelled, as the label allocated will be the _first_ point at that location.
Indicator lines are, if requested, drawn as for plot.mandel.kh
.
Vertical separators are drawn at midpoints of at
. If
boxplot.mandel.kh
returns the box plot statistics returned by
boxplot
, invisibly.
S Ellison s.ellison@lgc.co.uk
boxplot
for box plot arguments, and text
for outlier label
location, colour and rotation.
mandel.h
, mandel.k
, mandel.kh
,
pmandelh
, pmandelk
for probabilities, quantiles etc.
See plot.mandel.kh
for the 'classic' Mandel plot.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  data(RMstudy)
h < with(RMstudy, mandel.h(RMstudy[2:9], g=Lab))
boxplot(h, las=2)
#Recall that for normally distributed data mandel's h should
#have the same dispersion (and IQR) for all groups. But outliers adversely
#affect the estimate of dispersion, so the interquartile ranges differ.
#The same effect also accounts for the many boxplot outliers visible
#inside the classical Mandel indicator lines; the indicators also
#assume normality.
#with separators:
boxplot(h, las=2, separators=TRUE)
#With different labels and label colours:
boxplot(h, las=2, outlier.labels=paste(1:nrow(h)), col.lab=1:5)
#... and a horizontal variant (note use of pos to change label positions)
par(omd=c(0.1,1,0,1)) #to make room for axis labels
boxplot(h, las=1, separators=TRUE, horizontal=TRUE, pos=1)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.