Produce All Pairwise Scatter Plots - Generic Function
DESCRIPTION:
Creates on the current graphics device a figure that contains a scatter plot for each pair of variables in
x.
This function is an S Version 3 generic function; see the
Methods help file for more information. Method functions can be written to handle specific S Version 3 classes of data. Classes that already have methods for this function include
data.frame and
formula. The
default method handles matrices.
USAGE:
pairs(x, labels=dimnames(x)[[2]], ...)
REQUIRED ARGUMENTS:
x
a S-PLUS object.
OPTIONAL ARGUMENTS:
labels
vector of character strings for labeling the variables.
...
Methods typically have a
panel argument, which is a function that does the plotting for each pair of variables. Methods may also have an
invert argument that controls the layout of the matrix of plots.
General graphical parameters (e.g.,
col and
cex) may also be supplied as arguments to this function. See the
par help file for more details.
Currently,
pairs passes graphical parameters to both
plot and
points, so the parameters must be accepted by both functions.
This means, for example, that
xlim and
ylim are not accepted by
pairs, since they are high-level parameters that can only be given to
plot.
SIDE EFFECTS:
a plot is created on the current graphics device. The plot consists of scatter plots for each combination of variables in
x.