Learn R Programming

lattice (version 0.2-3)

splom: Scatter Plot Matrices

Description

Draw scatter plot matrices

Usage

splom(formula, ...)

Arguments

formula
a formula describing the form of the plot. A formula of the form ~ x | g1 * g2 * ..., where x is a matrix with rows giving the variables of which the pairwise scatterplots will be produced, conditional on the va
...
other arguments

Value

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

synopsis

splom(formula, aspect = 1, as.table = FALSE, between = list(x = 0.5, y = 0.5), data, groups = NULL, key = NULL, layout, main = NULL, page = NULL, panel = panel.splom, superpanel = panel.pairs, par.strip.text, prepanel, scales, skip = FALSE, strip = strip.default, sub = NULL, subscripts = !missing(groups), subset, xlab = NULL, xlim, ylab = NULL, ylim, ...)

Details

see the documentation for trellis.args

See Also

trellis.args, Lattice

Examples

Run this code
data(iris)
splom(~iris[1:4], groups = Species, data = iris, panel = panel.superpose)
new.iris <- iris[1:3]
colnames(new.iris) <- c("Sepal
Length", "Sepal
Width",
"Petal
Length")
splom(~new.iris|Species, data = iris)

Run the code above in your browser using DataLab