Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


mosaic (version 0.13.0)

ashplot: Average Shifted Histograms

Description

An ASH plot is the average over all histograms of a fixed bin width.

Usage

ashplot(x, ..., 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")

Arguments

x
a formula or numeric vector
...
additional arguments passed to panel and prepanel functions or data, a data frame in which to find the variales used for the plot.
width
the historam bin width.
adjust
a numeric adjustment to width. Primarily useful when width is not specified. Increasing adjust makes the plot smoother.
panel
a panel funtion
prepanel
a prepanel function
darg
a list of arguments for the function computing the ASH.
groups
as in other lattice plots
subscripts
as in other lattice prepanel functions
plot.points
One of TRUE, FALSE, "jitter", or "rug"
ref
a logical indicating whether a reference line should be displayed
jitter.amount
when plot.points="jitter", the value to use as the amount argument to jitter.
type
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.
identifier
A character string that is prepended to the names of i grobs that are created by this panel function.

Examples

Run this code
ashplot( ~age | substance, groups = sex, data = HELPrct)

Run the code above in your browser using DataLab