panel.densityplot {lattice}R Documentation

Default Panel Function for densityplot

Description

This is the default panel function for densityplot.

Usage

panel.densityplot(x, darg, plot.points = "jitter", ref = FALSE,
                  col, col.line, jitter.amount, ...)

Arguments

x data points for which density is to be estimated
darg list of arguments to be passed to the density function. Typically, this should be a list with zero or more of the following components : bw, adjust, kernel, window, width, give.Rkern, n, from, to, cut, na.rm (see density for details)
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 "rug", in which case panel.rug is used to plot a ‘rug’, and "jitter", in which case the points are jittered vertically to better distinguish overlapping points.
ref logical, whether to draw x-axis
col color for points and line
col.line color for line, overrides col
jitter.amount when plot.points="jitter", the value to use as the amount argument to jitter.
... extra grahical parameters

Author(s)

Deepayan Sarkar Deepayan.Sarkar@R-project.org

See Also

densityplot, jitter


[Package lattice version 0.12-11 Index]