\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(formula, data = NULL, subset, na.action, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{formula}] a formula, such as \code{y $\,\tilde{\,}$ x}.
\item[\code{data}] a data.frame (or list) from which the variables in
\code{formula} should be taken.
\item[\code{subset}] an optional vector specifying a subset of observations
to be used in the fitting process.
\item[\code{na.action}] a function which indicates what should happen when
the data contain \code{NA}s.
\item[\code{...}] graphical parameters may also be passed as arguments,
see \code{\Link{par}}.
\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)
\end{ExampleCode}
\end{Examples}

