Usage
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,
...)
densityplot(formula, data, n = 50, plot.points = TRUE, ref = FALSE,
...)
do.breaks(endpoints, nint)
synopsis
histogram(formula,
data = parent.frame(),
allow.multiple = is.null(groups) || outer,
outer = FALSE,
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[!is.na(x)]), 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,
...,
default.scales,
subscripts = !is.null(groups),
subset = TRUE)
densityplot(formula,
data = parent.frame(),
allow.multiple = is.null(groups) || outer,
outer = FALSE,
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 = NULL,
drop.unused.levels,
...,
default.scales,
panel.groups = "panel.densityplot",
subscripts = !is.null(groups),
subset = TRUE)