\Header{scatter.smooth}{Scatter Plot with Smooth Curve Fitted by Loess}
\alias{loess.smooth}{scatter.smooth}
\keyword{smooth}{scatter.smooth}
\begin{Description}\relax
Plot and add a smooth curve computed by \code{loess} to a scatter plot.
\end{Description}
\begin{Usage}
\begin{verbatim}
scatter.smooth(x, y, span = 2/3, degree = 1,
    family = c("symmetric", "gaussian"),
    xlab = deparse(substitute(x)), ylab = deparse(substitute(y)),
    ylim = range(y, prediction$y), evaluation = 50, ...)

loess.smooth(x, y, span = 2/3, degree = 1,
    family = c("symmetric", "gaussian"), evaluation = 50, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] x coordinates for scatter plot.
\item[\code{y}] y coordinates for scatter plot.
\item[\code{span}] smoothness parameter for \code{loess}.
\item[\code{degree}] degree of local polynomial used.
\item[\code{family}] if \code{"gaussian"} fitting is by least-squares, and if
\code{family="symmetric"} a re-descending M estimator is used.
\item[\code{xlab}] label for x axis.
\item[\code{ylab}] label for y axis.
\item[\code{ylim}] the y limits of the plot.
\item[\code{evaluation}] number of points at which to evaluate the smooth
curve.
\item[\code{...}] graphical parameters.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
\code{loess.smooth} is an auxiliary function which evaluates the
\code{loess} smooth at \code{evaluation} equally spaced points
covering the range of \code{x}.
\end{Details}
\begin{Value}
For \code{scatter.smooth}, none.

For \code{loess.smooth}, a list with two components, \code{x} (the
grid of evaluation points) and \code{y} (the smoothed values at the
grid points).
\end{Value}
\begin{SeeAlso}\relax
\code{\Link{loess}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
data(cars)
attach(cars)
scatter.smooth(speed, dist)
detach()
\end{ExampleCode}
\end{Examples}

