freqpolygon(x, ..., panel = panel.freqpolygon)panel.freqpolygon(x, plot.points = "jitter", ref = FALSE, groups = NULL,
weights = NULL, jitter.amount = 0.01 * diff(current.panel.limits()$ylim),
type = "density", breaks = NULL, nint = 1.5 * log2(length(x) + 1),
center = NULL, width = NULL,
gcol = trellis.par.get("reference.line")$col,
glwd = trellis.par.get("reference.line")$lwd, h, v, ...,
identifier = "density")
histogram
and panel
.TRUE
, FALSE
,
"jitter"
, or "rug"
indicating how points
are to be displayeddensityplot
or histogram
'density'
, 'percent'
, or
'count'
h=0
)freqpolygon(~age | substance, HELPrct, v=35, fit='normal')
freqpolygon(~age, HELPrct, labels=TRUE, type='count')
freqpolygon(~age, HELPrct, groups=cut(age, seq(10,80,by=10)))
freqpolygon(~age, HELPrct, groups=sex, stripes='horizontal')
freqpolygon(~racegrp, HELPrct, groups=substance,auto.key=TRUE)
## comparison of histogram and frequency polygon
histogram(~eruptions, faithful, type='density', width=.5)
ladd( panel.freqpolygon(faithful$eruptions, width=.5 ))
Run the code above in your browser using DataLab