\HeaderA{rfs}{Residual and Fit Spread Plots}{rfs}
\keyword{dplot}{rfs}
\begin{Description}\relax
Plots fitted values and residuals (via qqmath) on a common scale for
any object that has methods for fitted values and residuals.
\end{Description}
\begin{Usage}
\begin{verbatim}
rfs(model, layout=c(2, 1), xlab="f-value", distribution = qunif,...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{model}] a fitted model object with methods \code{fitted.values}
and \code{residuals}. Can be the value returned by \code{oneway} 
\item[\code{layout}] default layout is c(2,1)  
\item[\code{xlab}] defaults to \code{"f.value"} 
\item[\code{distribution}] the distribution function to be used for \code{qqmath}
\item[\code{...}] other arguments
\end{ldescription}
\end{Arguments}
\begin{Value}
An object of class ``trellis''. The `update' method can be used to
update components of the object and the `print' method (usually called
by default) will plot it on an appropriate plotting device.
\end{Value}
\begin{Author}\relax
Deepayan Sarkar \email{Deepayan.Sarkar@R-project.org}
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{oneway}{oneway}}, \code{\LinkA{qqmath}{qqmath}},
\code{\LinkA{xyplot}{xyplot}}, \code{\LinkA{Lattice}{Lattice}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
rfs(oneway(height ~ voice.part, data = singer, spread = 1), aspect = 1)
\end{ExampleCode}
\end{Examples}

