\HeaderA{maPlot.func}{Scatter-plots with fitted curves and text}{maPlot.func}
\keyword{hplot}{maPlot.func}
\begin{Description}\relax
This function produces scatter-plots of \code{x} vs. \code{y}. It also allows the user to highlight and annotate subsets of points on the plot, and display fitted curves from robust local regression or other smoothing procedures.
\end{Description}
\begin{Usage}
\begin{verbatim}
maPlot.func(x, y, z, 
        lines.func = maLowessLines(subset = TRUE, f = 0.3, col = 1:length(unique(z)), lty = 1, lwd = 2.5),
        text.func = maText(), 
        legend.func = maLegendLines(legend = as.character(unique(z)), col = 1:length(unique(z)), lty = 1, lwd = 2.5, ncol = 1),
         ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] A "numeric" vector for the abscissa.
\item[\code{y}] A "numeric" vector for the ordinates.
\item[\code{z}] A vector of statistic used to stratify the data, smoothed curves are fitted separately within values of \code{z}
\item[\code{lines.func}] A function for computing and plotting smoothed fits of \code{y} as a function of \code{x}, separately within values of \code{z}, e.g. \code{\LinkA{maLoessLines}{maLoessLines}}.
\item[\code{text.func}] A function for highlighting a subset of points, e.g., \code{maText}.
\item[\code{legend.func}] A function for adding a legend to the plot, e.g. \code{\LinkA{maLegendLines}{maLegendLines}}.
\item[\code{...}] Optional graphical parameters, see \code{\LinkA{par}{par}}.
\end{ldescription}
\end{Arguments}
\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{maPlot}{maPlot}}, \code{\LinkA{maLoessLines}{maLoessLines}}, \code{\LinkA{maLegendLines}{maLegendLines}}, \code{\LinkA{maText}{maText}}, \code{\LinkA{plot}{plot}}, \code{\LinkA{lowess}{lowess}}, \code{\LinkA{loess}{loess}}, \code{\LinkA{legend}{legend}}.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
# See examples for maPlot.

\end{ExampleCode}
\end{Examples}


