An ASH plot is the average over all histograms of a fixed bin width.
ashplot(
x,
data = data,
...,
width = NULL,
adjust = NULL,
panel = panel.ashplot,
prepanel = prepanel.default.ashplot
)prepanel.default.ashplot(x, darg, groups = NULL, subscripts = TRUE, ...)
panel.ashplot(
x,
darg = list(),
plot.points = FALSE,
ref = FALSE,
groups = NULL,
jitter.amount = 0.01 * diff(current.panel.limits()$ylim),
type = "p",
...,
identifier = "ash"
)
A formula or numeric vector.
A data frame.
Additional arguments passed to panel and prepanel functions or data
, a
data frame in which to find the variables used for the plot.
The histogram bin width.
A numeric adjustment to width
. Primarily useful when width
is
not specified. Increasing adjust
makes the plot smoother.
A panel function.
A prepanel function.
a list of arguments for the function computing the ASH.
as in other lattice plots
as in other lattice prepanel functions
One of TRUE
, FALSE
, "jitter"
, or "rug"
a logical indicating whether a reference line should be displayed
when plot.points="jitter"
, the value to use as the amount
argument to jitter()
.
type argument used to plot points, if requested.
This is not expected to be useful, it is available mostly to protect a type
argument,
if specified, from affecting the display of the ASH.
A character string that is prepended to the names of i grobs that are created by this panel function.
ashplot( ~age | substance, groups = sex, data = HELPrct)
Run the code above in your browser using DataLab