Provides quantile plots for one or more factor levels overlaid on a single graph. If plot.CI = TRUE
, then
code for bootstrapped confidence provided in the documentation for boot
is applied to create confidence envelopes. If plot.CI = FALSE
, qqnorm
and qqline
are used to create overlaid normal probability plots given multiple categories in x
.
qq.Plot(y, x = NULL, col = NULL, pch = NULL, main = "", R = 5000, fit.lty = 1,
env.lty = 2, conf = 0.95, type = "point", ylim = NULL, xlim = NULL, xlab = NULL,
ylab = NULL, plot.CI = FALSE, standy = TRUE, ...)
The response variable
A categorical variable to subset y
A scalar or vector with length equivalent to the number of levels in x, describing colors of points and lines for levels in x.
A scalar or vector with length equivalent to the number of levels in x, describing symbols for levels in x.
Main title.
Number of bootstrap samples for calculating confidence envelopes
Line type for fit line(s).
Line type for fit line(s).
Level of confidence in confidence envelopes.
Type of bootstrapped confidence envelope. One of "point"
or "overall"
.
A two element vector defining the lower and upper x-axis limits .
A two element vector defining the lower and upper y-axis limits .
X-axis label.
Y-axis label.
Logical, specifying whether or not confidence ellipses should be plotted.
Logical, specifying if observations should be standardized.
Other arguments from plot
.
Ken Aho
y <- rnorm(50)
x <- c(rep(1, 25), rep(2, 25))
qq.Plot(y, x)
Run the code above in your browser using DataLab