Produce a Scatterplot Matrix for a Data Frame

DESCRIPTION:

Produces a plot on the current graphics device that contains all pairwise scatterplots of the variables in the data frame x.

USAGE:

pairs.data.frame(x, labels = names(x), panel = points,  
      minlength = c(4,7), ...) 

REQUIRED ARGUMENTS:

x
data frame to be plotted.

OPTIONAL ARGUMENTS:

labels
optional character vector for labeling the variables in the plots. The strings labels[1], labels[2], etc., are the labels for the 1st, 2nd, etc., panel in the diagonal panels. If supplied, the label vector must have length equal to ncol(x).
panel
user-supplied function of x and y that determines the method for plotting on the panels.
minlength
numeric vector of 2 values. For each factor variable in x, minlength is passed to the argument of the same name in the abbreviate function, which is used to abbreviate the factor levels for unclustered labeling. See the documentation on abbreviate for more detail.
invert
logical flag: if invert=FALSE, the variable labels appear in the southwest to northeast diagonal panels. The default is invert=TRUE, which places labels in the northwest to southeast diagonal panels.
...
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.data.frame 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.data.frame, since they are high-level parameters that can only be given to plot.

SIDE EFFECTS:

produces a plot on the current graphics device that contains all pairwise scatter plots of the variables in x.

DETAILS:

This function is a method for the generic function for the class data.frame. It can be invoked by calling for an object x of the appropriate class, or directly by calling regardless of the class of the object.

SEE ALSO:

, , .

EXAMPLES:

pairs(fc, minlength = c(2,3))