data
argument is a bigdata bdFrame (see the DETAILS).
densityplot(formula, cut, from, n=50, to, width, window="gaussian", ...)The following arguments have special meaning within this function. The common meanings for these and all other arguments are listed separately under
trellis.args
.
~ x | g1 * g2 * ...
however the given variables
g1
,
g2
, ... may be omitted.
The
x
variable is a numeric response
and is the data used in the probability density estimate.
Given variables, on the right hand side of the vertical bar,
are factors or shingles.
width
for controlling default values
of
from
and
to
.
For gaussian windows,
cut=.75
;
otherwise,
cut=.5
.
from
and
to
.
Default is range of data extended by
width*cut
.
log(length(x), base=2)+1
bars to cover
the range of
x
.
The standard error of a Gaussian window is
width/4
.
"cosine"
,
"gaussian"
,
"rectangular"
,
"triangular"
(one character is sufficient).
trellis
,
which is automatically plotted by
print.trellis
.
If the
data
argument is a bdFrame then the densities
are computed before the panel function is called.
The default panel function used in this case is
panel.xyplot
.
densityplot( ~ height | voice.part, data=singer, layout=c(2, 4), aspect= 1, xlab="Height (inches)", width=5)