The qqnorm function is generic (see Methods); method functions can be written to handle specific classes of data. Classes which already have methods for this function include: aov, aovlist, maov.
qqnorm(x, ...) qqnorm.default(x, datax = F, plot = T) qqplot(x, y, plot = T)
Graphical parameters may also be supplied as arguments to this function (see par). In particular these functions can take arguments type and log to control plot type and logarithmic axes (see plot.default). Use the arguments xlim and ylim to control the limits of the plot region. In addition, the high-level graphics arguments described under par and the arguments to title may be supplied to this function.
The function qqnorm takes a single vector of data for a normal (Gaussian) probability plot.
Hoaglin, D. C., Mosteller, F. and Tukey, J. W., editors (1983). Understanding Robust and Exploratory Data Analysis. Wiley, New York.
zz <- qqplot(lottery.payoff, lottery3.payoff, plot = F) plot(zz) # plot it abline(lmsreg(zz$x, zz$y)) # fit robust line and draw itqqnorm(rnorm(samplesize)) # samplesize must be previously specified # evaluate several times to train your eye
set.seed(493) my.sample <- rt(100, 5) lab <- "100 samples from a t-distribution with 5 df" qqnorm(my.sample, main = lab, sub = "QQ Plot with Line") qqline(my.sample)