\Header{pairs.formula}{Formula Notation for Scatterplot Matrices}
\keyword{hplot}{pairs.formula}
\begin{Description}\relax
Produce a matrix of scatterplots using formula notation.\end{Description}
\begin{Usage}
\begin{verbatim}
pairs(formula, data = NULL, ..., subset)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{formula}] a formula, such as \code{y \textasciitilde{} x}.
\item[\code{data}] a data.frame (or list) from which the variables in
\code{formula} should be taken.
\item[\code{...}] arguments to the default pairs method and graphical
parameters may also be passed as arguments, see \code{\Link{par}}.
\item[\code{subset}] an optional vector specifying a subset of observations
to be used for plotting.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This is a method of the generic function \code{\Link{pairs}}.  It
operates by setting up the data from the formula specification, and
then calling \code{\Link{pairs.default}}.\end{Details}
\begin{SeeAlso}\relax
\code{\Link{pairs.default}}\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
data(swiss)
pairs(~ Fertility + Education + Catholic, data = swiss,
      subset = Education < 20, main = "Swiss data, Education < 20")
\end{ExampleCode}
\end{Examples}

