\HeaderA{panel.densityplot}{Default Panel Function for densityplot}{panel.densityplot}
\keyword{dplot}{panel.densityplot}
\begin{Description}\relax
This is the default panel function for \code{densityplot}.
\end{Description}
\begin{Usage}
\begin{verbatim}
panel.densityplot(x, darg, plot.points = "jitter", ref = FALSE,
                  groups = NULL, weights = NULL,
                  jitter.amount, type, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] data points for which density is to be estimated 
\item[\code{darg}] list of arguments to be passed to the \code{density}
function. Typically, this should be a list with zero or more of the
following components : \code{bw}, \code{adjust}, \code{kernel},
\code{window}, \code{width}, \code{give.Rkern}, \code{n},
\code{from}, \code{to}, \code{cut}, \code{na.rm} (see
\code{\LinkA{density}{density}} for details)

\item[\code{plot.points}] logical specifying whether or not the data points should be plotted
along with the estimated density.  Alternatively, a character string
specifying how the points should be plotted.  Meaningful values are
\code{"rug"}, in which case \code{\LinkA{panel.rug}{panel.rug}} is used to plot
a \sQuote{rug}, and \code{"jitter"}, in which case the points are
jittered vertically to better distinguish overlapping points.

\item[\code{ref}] logical, whether to draw x-axis 
\item[\code{groups}] an optional grouping variable.  If present,
\code{\LinkA{panel.superpose}{panel.superpose}} will be used instead to display each
subgroup 
\item[\code{weights}] numeric vector of weights for the density
calculations.  If this is specified, the \code{...} part must
also include a \code{subscripts} argument that matches the weights
to \code{x}.  
\item[\code{jitter.amount}] when \code{plot.points="jitter"}, the value to use as the
\code{amount} argument to \code{\LinkA{jitter}{jitter}}.

\item[\code{type}] \code{type} argument used to plot points, if requested.
This is not expected to be useful, it is available mostly to protect
a \code{type} argument, if specified, from affecting the density
curve.

\item[\code{...}] extra graphical parameters.  Note that additional
arguments to \code{\LinkA{panel.rug}{panel.rug}} cannot be passed on through
\code{panel.densityplot}. 
\end{ldescription}
\end{Arguments}
\begin{Author}\relax
Deepayan Sarkar \email{Deepayan.Sarkar@R-project.org}
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{densityplot}{densityplot}},
\code{\LinkA{jitter}{jitter}}
\end{SeeAlso}

