Learn R Programming

lattice (version 0.4-0)

xyplot: Common Bivariate Trellis Plots

Description

These are the most commonly used Trellis functions to look at pairs of variables. By far the most common is xyplot, designed mainly for two continuous variates, which produces Conditional Scatterplots. The others are useful when one of the variates is a factor. See details below.

Most of the arguments documented here are also applicable for many of the other Trellis functions. These are not described in any detail elsewhere, and this should be considered the canonical documentation for such arguments.

Usage

xyplot(formula,
       data = parent.frame(),
       panel = "panel.xyplot",
       aspect = "fill",
       as.table = FALSE,
       between,
       groups,
       key,
       layout,
       main,
       page,
       par.strip.text,
       prepanel,
       scales,
       skip,
       strip = "strip.default",
       sub,
       xlab,
       xlim,
       ylab,
       ylim,
       ...,
       subscripts,
       subset)
barchart(formula, data, panel = "panel.barchart", box.ratio = 2, ...)
bwplot(formula, data, panel = "panel.bwplot", box.ratio = 1, ...)
dotplot(formula, data, panel = "panel.dotplot", ...)
stripplot(formula, data, panel = "panel.stripplot",
          jitter = FALSE, factor = .5, box.ratio, ...)

Arguments

formula
a formula describing the form of conditioning plot. The formula is generally of the form y ~ x | g1 * g2 * ..., indicating that plots of y (on the y axis) versus x (on the x axis) should be produced condi

synopsis

xyplot(formula, data = parent.frame(), aspect = "fill", layout = NULL, panel = panel.xyplot, prepanel = NULL, scales = list(), strip = TRUE, groups = NULL, xlab, xlim, ylab, ylim, ..., subscripts = !is.null(groups), subset = TRUE) barchart(formula, data = parent.frame(), panel = "panel.barchart", prepanel = NULL, strip = TRUE, box.ratio = 2, groups = NULL, ..., subset = TRUE) bwplot(formula, data = parent.frame(), aspect = "fill", layout = NULL, panel = panel.bwplot, prepanel = NULL, scales = list(), strip = TRUE, groups = NULL, xlab, xlim, ylab, ylim, box.ratio = 1, ..., subscripts = !missing(groups), subset = TRUE) dotplot(formula, data = parent.frame(), panel = "panel.dotplot", prepanel = NULL, strip = TRUE, groups = NULL, ..., subset = TRUE) stripplot(formula, data = parent.frame(), panel = "panel.stripplot", prepanel = NULL, strip = TRUE, jitter = FALSE, factor = 0.5, box.ratio = if (jitter) 1 else 0, groups = NULL, ..., subset = TRUE)