\HeaderA{maLoessLines}{Add smoothed fits to a plot}{maLoessLines}
\aliasA{maLowessLines}{maLoessLines}{maLowessLines}
\keyword{aplot}{maLoessLines}
\keyword{smooth}{maLoessLines}
\begin{Description}\relax
This function may be used to compute and plot loess or lowess fits for an existing plot. The plot can be produced by \code{\LinkA{plot}{plot}}, \code{\LinkA{maPlot}{maPlot}}, or \code{\LinkA{maPlot.func}{maPlot.func}}.
\end{Description}
\begin{Usage}
\begin{verbatim}
maLoessLines(subset=TRUE, weights=NULL, loess.args=list(span = 0.4,
degree=1, family="symmetric", control=loess.control(trace.hat =
"approximate", iterations=5, surface="direct")), col=2, lty=1, lwd=2.5, ...)

maLowessLines(subset = TRUE, f = 0.3, col = 2, lty = 1, lwd = 2.5, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{subset}] A "logical" or "numeric" vector indicating the subset of points used to compute the fits. 
\item[\code{weights}] Optional "numeric" vector of weights -- for \code{maLoessLines} only.
\item[\code{loess.args}] List of optional arguments for the \code{\LinkA{loess}{loess}} functions -- for \code{maLoessLines} only.
\item[\code{f}] The smoother span for the \code{\LinkA{lowess}{lowess}} function -- for \code{maLowessLines} only.
\item[\code{col}] The fitted line colors.
\item[\code{lty}] The fitted line types.
\item[\code{lwd}] The fitted line widths.
\item[\code{...}] Optional graphical parameters, see \code{\LinkA{par}{par}}.
\end{ldescription}
\end{Arguments}
\begin{Value}
A function with bindings for \code{subset}, \code{weights}, \code{loess.args},  \code{col}, \code{lty}, \code{lwd}, and \code{...}. This latter function takes as arguments \code{x} and \code{y}, the abscissa and ordinates of points on the plot, and \code{z} a vector of discrete values used to stratify the points. Loess (or lowess) fits are performed separately within values of \code{z}.
\end{Value}
\begin{Author}\relax
Sandrine Dudoit, \url{http://www.stat.berkeley.edu/~sandrine}.
\end{Author}
\begin{References}\relax
S. Dudoit and Y. H. Yang. (2002). Bioconductor R packages for exploratory analysis and normalization of cDNA microarray data. In G. Parmigiani, E. S. Garrett, R. A. Irizarry and S. L. Zeger, editors, \emph{The Analysis of Gene Expression Data: Methods and Software}, Springer, New York.
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{loess}{loess}}, \code{\LinkA{lowess}{lowess}}, \code{\LinkA{maPlot}{maPlot}}, \code{\LinkA{maPlot.func}{maPlot.func}}.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
# See examples for maPlot.

\end{ExampleCode}
\end{Examples}


