\HeaderA{varplot}{Variance component plot}{varplot}
\keyword{dplot}{varplot}
\begin{Description}\relax
This function plots the density curve of each variance component of a
result from \code{\LinkA{fitmaanova}{fitmaanova}}.

If the input is from fixed model ANOVA, it will plot one curve for
error variance component. If the input is from mixed model ANOVA, it
will plot multiple curves, one for a random term (including error).
\end{Description}
\begin{Usage}
\begin{verbatim}
varplot(anovaobj, xlab, ylab, main)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{anovaobj}] An object of class \code{maanova}.
\item[\code{xlab}] Figure xlab. Default is "Sigma".
\item[\code{ylab}] Figure ylab. Default is "Density".
\item[\code{main}] Figure title. Default is "Density plot for sqrt of variance".
\end{ldescription}
\end{Arguments}
\begin{Author}\relax
Hao Wu
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{fitmaanova}{fitmaanova}},
\code{\LinkA{density}{density}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
# load abf1 data
data(abf1)
## Not run: 
fit.full.mix <- fitmaanova(abf1, formula = ~Strain+Sample, 
   random = ~Sample)
varplot(fit.full.mix)
## End(Not run)
\end{ExampleCode}
\end{Examples}

