pairs.formula {base} | R Documentation |
Produce a matrix of scatterplots using formula notation.
## S3 method for class 'formula'
pairs(formula, data = NULL, ..., subset)
formula |
a formula, such as |
data |
a data.frame (or list) from which the variables in
|
... |
arguments to the default pairs method and graphical
parameters may also be passed as arguments, see |
subset |
an optional vector specifying a subset of observations to be used for plotting. |
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
.
pairs.default
data(swiss)
pairs(~ Fertility + Education + Catholic, data = swiss,
subset = Education < 20, main = "Swiss data, Education < 20")