\HeaderA{density.plot}{Density plots for population level parameters}{density.plot}
\keyword{hplot}{density.plot}
\begin{Description}\relax
Generates a density plot for population level quantities of
interest output by \code{\LinkA{lambda.MD}{lambda.MD}}, \code{\LinkA{lambda.reg}{lambda.reg}},
and \code{\LinkA{lambda.reg.bayes}{lambda.reg.bayes}}.  For the Bayesian methods,
\code{density.plot} plots the kernel density for the draws.  For the
frequentist \code{\LinkA{lambda.reg}{lambda.reg}} method, \code{density.plot} plots
the canonical Normal density conditional on the mean and standard error
output by \code{\LinkA{lambda.reg}{lambda.reg}}.
\end{Description}
\begin{Usage}
\begin{verbatim}
density.plot(x, by = "column", col, xlim, ylim,
             main = "", sub = NULL, xlab, ylab,
             lty = par("lty"), lwd = par("lwd"), ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] output from \code{\LinkA{lambda.MD}{lambda.MD}}, \code{\LinkA{lambda.reg}{lambda.reg}},
or \code{\LinkA{lambda.reg.bayes}{lambda.reg.bayes}}.
\item[\code{by}] character string (defaulting to \code{"column"}) specifying
whether to panel the density plot by \code{"row"} or \code{"column"}
marginal.
\item[\code{col}] an optional vector of colors, with length corresponding to
the number of marginals selected in \code{by}.  Defaults to
\code{rainbow}.
\item[\code{xlim,ylim}] optional limits for the x-axis and y-axis, passed to
\code{plot}.
\item[\code{main,sub}] optional title and subtitle, passed to \code{plot}.
\item[\code{xlab,ylab}] optional labels for the x- and y-axes, passed to
\code{plot}.
\item[\code{lty,lwd}] optional arguments for line type and line width, passed
to \code{lines} and \code{plot}.  If either \code{lty} or \code{lwd} are
vectors, it must correspond to the number of row or column marginals selected.
\item[\code{...}] additional arguments passed to \code{par}.
\end{ldescription}
\end{Arguments}
\begin{Value}
A plot with density lines for the selected margin (row or column).
\end{Value}
\begin{Author}\relax
Olivia Lau \textless{}\email{olivia.lau@post.harvard.edu}\textgreater{}
\end{Author}
\begin{SeeAlso}\relax
\code{plot}, \code{segments}, \code{par}
\end{SeeAlso}

