qqmath(formula, distribution = qnorm, f.value = ppoints, ...)
The following arguments have special meaning within this function. The common meanings for these and all other arguments are listed separately under trellis.args.
# how well is a normal sample fit by a t distn on 7df? qqmath( ~ rnorm(100), distribution = function(p) qt(p,df=7))qqmath( ~ height | voice.part, data = singer, prepanel = prepanel.qqmathline, panel = function(x, y) { panel.grid() panel.qqmathline(y, distribution = qnorm) panel.qqmath(x, y) }, layout = c(2, 4), aspect = 1, xlab = "Unit Normal Quantile", ylab = "Height (inches)")
# residuals for each voice part plotted against distn of pooled residuals attach(singer) oneway.residuals <- oneway(height ~ voice.part, spread = 1)$residuals qqmath( ~ oneway.residuals | voice.part, distribution = function(p) quantile(oneway.residuals,p), panel = function(x, y) { panel.grid() panel.abline(0, 1) panel.qqmath(x, y) }, aspect = 1, layout = c(2, 4), xlab = "Pooled Residual Height (inches)", ylab = "Residual Height (inches)")