Usage
histogram(formula, ...)
densityplot(formula, ...)## S3 method for class 'formula':
histogram(formula,
data,
type = c("percent", "count", "density"),
nint = if(is.factor(x)) length(levels(x))
else round(log2(length(x))+1),
endpoints = range(x[!na.x]),
breaks = if(is.factor(x)) seq(0.5, length = length(levels(x))
+ 1) else do.breaks(endpoints, nint),
equal.widths = FALSE,
...)
## S3 method for class 'numeric':
histogram(formula, \dots)
## S3 method for class 'factor':
histogram(formula, \dots)
## S3 method for class 'formula':
densityplot(formula, data, n = 50, plot.points = TRUE, ref = FALSE,
\dots)
## S3 method for class 'numeric':
densityplot(formula, \dots)
do.breaks(endpoints, nint)
synopsis
## S3 method for class 'formula':
histogram(formula,
data = parent.frame(),
allow.multiple = is.null(groups) || outer,
outer = TRUE,
auto.key = FALSE,
aspect = "fill",
panel = "panel.histogram",
prepanel = NULL,
scales = list(),
strip = TRUE,
groups = NULL,
xlab,
xlim,
ylab,
ylim,
type = c("percent", "count", "density"),
nint = if (is.factor(x)) length(levels(x))
else round(log2(length(x)) + 1),
endpoints = extend.limits(range(x, finite = TRUE), prop = 0.04),
breaks = if (is.factor(x)) seq(0.5, length = length(levels(x))+1)
else do.breaks(endpoints, nint),
equal.widths = TRUE,
drop.unused.levels = lattice.getOption("drop.unused.levels"),
...,
default.scales = list(),
subscripts = !is.null(groups),
subset = TRUE)
## S3 method for class 'formula':
densityplot(formula,
data = parent.frame(),
allow.multiple = is.null(groups) || outer,
outer = !is.null(groups),
auto.key = FALSE,
aspect = "fill",
panel = if (is.null(groups)) "panel.densityplot" else "panel.superpose",
prepanel = NULL,
scales = list(),
strip = TRUE,
groups = NULL,
xlab,
xlim,
ylab,
ylim,
bw = NULL,
adjust = NULL,
kernel = NULL,
window = NULL,
width = NULL,
give.Rkern = FALSE,
n = 50,
from = NULL,
to = NULL,
cut = NULL,
na.rm = TRUE,
drop.unused.levels = lattice.getOption("drop.unused.levels"),
...,
default.scales = list(),
panel.groups = "panel.densityplot",
subscripts = !is.null(groups),
subset = TRUE)