qreference {DAAG}R Documentation

Normal QQ Reference Plot

Description

This function computes the normal QQ plot for given data and allows for comparison with normal QQ plots of simulated data.

Usage

qreference(test = NULL, m = 50, nrep = 6, distribution = function(x) qnorm(x, 
    mean = 0, sd = 1), seed = NULL, nrows = NULL, cex.points = 0.65, 
    cex.strip = 0.75, xlab = NULL, ylab = NULL, refline = FALSE)

Arguments

test a vector containing a sample to be tested
m the sample size for the reference samples; default is test sample size if test sample is supplied
nrep the total number of samples, including reference samples and test sample if any
distribution reference distribution; default is standard normal
seed the random number generator seed
nrows number of rows in the plot layout
cex.points character expansion factor for plotted points
cex.strip character expansion factor for labels
xlab label for x-axis
ylab label for y-axis
refline adds a reference line to each panel

Value

QQ plots of the sample (if test is non-null) and all reference samples

Author(s)

J.H. Maindonald

Examples

qreference(rt(180,1))

qreference(rt(180,1), distribution=function(x) qt(x, df=1))

qreference(rexp(180), nrep = 4)

toycars.lm <- lm(distance ~ angle + factor(car), data = toycars)
qreference(residuals(toycars.lm), nrep = 9)

[Package DAAG version 0.46 Index]