This help topic is for R version 1.5.0. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/pairs.formula.html
pairs.formula {base}R Documentation

Formula Notation for Scatterplot Matrices

Description

Produce a matrix of scatterplots using formula notation.

Usage

## S3 method for class 'formula'
pairs(formula, data = NULL, ..., subset)

Arguments

formula

a formula, such as y ~ x.

data

a data.frame (or list) from which the variables in formula should be taken.

...

arguments to the default pairs method and graphical parameters may also be passed as arguments, see par.

subset

an optional vector specifying a subset of observations to be used for plotting.

Details

This is a method of the generic function pairs. It operates by setting up the data from the formula specification, and then calling pairs.default.

See Also

pairs.default

Examples

data(swiss)
pairs(~ Fertility + Education + Catholic, data = swiss,
      subset = Education < 20, main = "Swiss data, Education < 20")

[Package base version 1.5.0 ]