Panel Function for Density Plots

USAGE:

panel.densityplot(x, y, cut, from, to, n = 50, type = "l",  
                  width, window = "gaussian", ...) 

ARGUMENTS:

x
vector of observations from distribution whose density is to be estimated.
y
dummy variable.
cut
fraction of width for controlling default values of from and to. For gaussian windows, cut=.75; otherwise, cut=.5 .
from,to
the n estimated values of density are equally spaced between from and to. Default is range of data extended by width*cut.
n
the number of equally spaced points at which to estimate density.
type
character string telling how to plot the x and y values: "p" for using the points function, "l" for using the lines function.
width
width of the window. Default is width of histogram bar which is determined by log(length(x), base=2)+1 bars to cover the range of x. The standard error of a Gaussian window is width /4.
window
character string giving the type of window used in computation "cosine", "gaussian" , "rectangular" , "triangular" (one character is sufficient).
...
graphical parameters that are passed to points or lines. By default, the trellis parameter list plot.symbol will be used to control character size ( cex ), plotting symbol ( pch ), font, and color ( col ) for points; the plot.line parameters will be used to control line width ( lwd ), line type ( lty ), and color ( col ) for lines.

SIDE EFFECTS:

A density plot is drawn on the display.

SEE ALSO:

, .