Usage
qqfun(x, distribution="norm", ylab=deparse(substitute(x)), xlab=paste(distribution, "quantiles"), main=NULL, las=par("las"), envelope=.95, labels=FALSE, col=palette()[4], lcol=palette()[2], xlim=NULL, ylim=NULL, lwd=1, pch=1, bg=palette()[4], cex=.4, line=c("quartiles", "robust", "none"), ...)
Arguments
x
vector of numeric values.
distribution
root name of comparison distribution -- e.g., norm
for the
normal distribution; t
for the t-distribution.
ylab
label for vertical (empirical quantiles) axis.
xlab
label for horizontal (comparison quantiles) axis.
envelope
confidence level for point-wise confidence envelope, or
FALSE
for no envelope.
labels
vector of point labels for interactive point identification,
or FALSE
for no labels.
las
if 0
, ticks labels are drawn parallel to the
axis; set to 1
for horizontal labels (see par
). col
color for points; the default is the fourth entry
in the current color palette (see palette
and par
). lcol
color for lines; the default is the second entry as above.
xlim
the x limits (x1, x2) of the plot. Note that x1 > x2 is allowed and leads to a reversed axis.
ylim
the y limits of the plot
pch
plotting character for points; default is 1
(a circle, see par
). bg
background color of points
cex
factor for expanding the size of plotted symbols; the default is
.4
.
lwd
line width; default is 1
(see par
).
Confidence envelopes are drawn at half this line width. line
"quartiles"
to pass a line through the quartile-pairs, or
"robust"
for a robust-regression line; the latter uses the rlm
function in the MASS
package. Specifying line = "none"
suppresses the line.
...
arguments such as df
to be passed to the appropriate quantile function.