Learn R Programming

asbio (version 1.2-5)

qq.Plot: Normal quantile plots for multiple factor levels

Description

Provides quantile plots for one or more factor levels overlaid on a single graph.

Usage

qq.Plot(y, x = NULL, col = 1, pch = 1, main = "", R = 5000, fit.lty = 1, env.lty = 2, 
conf = 0.95, type = "point", ylim = NULL, xlab = "Normal quantiles", 
ylab = "Studentized observed quantiles", ...)

Arguments

y
The response variable
x
A categorical variables to subset y
col
A scalar or vector with length equivelent to the number of levels in x, describing colors of points and lines for levels in x.
pch
A scalar or vector with length equivelent to the number of levels in x, describing symbols for levels in x.
main
Main title.
R
Number of bootstrap samples for calculating confidence envelopes
fit.lty
Line type for fit line(s).
env.lty
Line type for fit line(s).
conf
Level of confidence in confidence envelopes.
type
Type of bootstrapped confidence envelope. One of "point" or "overall".
ylim
A two element vector defining the lower and upper y-axis limits .
xlab
X-axis label.
ylab
Y-axis label.
...
Other arguments from plot.

See Also

qqnorm, qqline, envelope

Examples

Run this code
y <- rnorm(50)
x <- c(rep(1, 25), rep(2, 25))
qq.Plot(y, x)

Run the code above in your browser using DataLab