\HeaderA{resiplot}{Residual plot for Micro Array Experiment}{resiplot}
\keyword{hplot}{resiplot}
\begin{Description}\relax
This is the function to plot the residuals versus fitted value figure. Two
channels, e.g., red and green, are drawn in seperate figures.
\end{Description}
\begin{Usage}
\begin{verbatim}
resiplot(madata, anovaobj, header)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{madata}] An object of class \code{madata}.
\item[\code{anovaobj}] An object of class \code{maanova}, which is the output
from \code{\LinkA{fitmaanova}{fitmaanova}}.
\item[\code{header}] Optional. The title of the figure. The default figure
title will be "Residual vs. Yhat plot".
\end{ldescription}
\end{Arguments}
\begin{Author}\relax
Hao Wu
\end{Author}
\begin{Examples}
\begin{ExampleCode}
# load in Paigen's data
data(paigen)
# make data object with rep 2
paigen <- createData(paigen.raw, 2)
# Note that the data is normalized so normalization is skipped
# full model
model.full.fix <- makeModel(data=paigen,
      formula=~Dye+Array+Spot+Strain+Diet+Strain:Diet)
anova.full.fix <- fitmaanova(paigen, model.full.fix)
# residual plot
resiplot(paigen, anova.full.fix)
\end{ExampleCode}
\end{Examples}

