Produce All Pair-Wise Scatter Plots - Generic function

DESCRIPTION:

Creates on the current graphics device a figure which contains all of the scatterplots of one variable against another.

This function is an S Version 3 generic (see Methods); method functions can be written to handle specific S Version 3 classes of data. Classes which already have methods for this function include:

data.frame , formula.

The default method handles matrices.

USAGE:

pairs(x, labels=dimnames(x)[[2]], ...) 

REQUIRED ARGUMENTS:

x
an 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 in the plot for each pair of variables, and an invert argument to control the layout of the matrix of plots.

General graphical parameters (e.g., col, cex) may also be supplied as arguments to this function (see par).

SIDE EFFECTS:

a plot is created on the current graphics device. The plot consists of a scatter plot for each combination of variables that is represented by x.

SEE ALSO:

brush , plot , par .

EXAMPLES:

pairs(longley.x) 
pairs(ozone.data, panel=function(x,y) { points(x,y); lines(lowess(x,y))} )