Learn R Programming

lattice (version 0.5-4)

qq: Quantile-Quantile Plots of Two Samples

Description

Quantile-Quantile plots for comparing two Distributions

Usage

qq(formula, f.value = ppoints, ...)

Arguments

formula
formula of the form y ~ x | g1 * g2 * ..., where x must be a numeric, and y can be a factor, shingle, character or numeric vector, with the restriction that there must be exactly two levels of y
f.value
function of a single integer (representing sample size), returning a vector of probabilities corresponding to which quantiles should be plotted.
...
Other arguments

Value

  • An object of class trellis, by default plotted by print.trellis.

synopsis

qq(formula, data = parent.frame(), aspect = "fill", layout = NULL, panel = panel.qq, prepanel = NULL, scales = list(), strip = TRUE, groups = NULL, xlab, xlim, ylab, ylim, f.value = ppoints, ..., subscripts = !is.null(groups), subset = TRUE)

Details

These and all other high level Trellis functions have several arguments in common. These are extensively documented only in the help page for xyplot, which should be consulted to learn more detailed usage.

See Also

xyplot, panel.qq, Lattice

Examples

Run this code
data(singer)
qq(voice.part ~ height, aspect = 1, data = singer,
   subset = (voice.part == "Bass 2" | voice.part == "Tenor 1"))

Run the code above in your browser using DataLab