panel.hist: Plot Histograms Flexibly

Description Usage Arguments Value Author(s) References See Also

Description

histogram and panel.histogram in package lattice (expected) are univariate. Here, we present a bivariate histogram panel function for use, e.g., with stripplot. panel.bar adds line segments, appropriate for reference lines in a histogram. unitHist calls hist but returns histogram specifications that have been rescaled so that maximum bar height is 1.

Usage

1
2
3
4
panel.hist(x,y,level,horizontal,col.line,fill,factor,border=col.line,col=fill,
offset=-0.5,font,fontface,...)
panel.bar(x,y,level,horizontal,col,col.line,fill,factor,font,fontface,...)
unitHist(x, plot = FALSE, ...)

Arguments

x

vector

y

vector

level

the level at which to draw the histogram, typically supplied by panel.stratify

horizontal

typically TRUE

col

fill color (ignored for panel.bar)

col.line

border color if border not supplied

fill

fill color if col not supplied

factor

factor by which to expand or attenuate bar heights relative to unity

border

border color

offset

amount to raise the base of each bar relative to the level

...

passed to other functions

font

ignored

fontface

ignored

plot

passed to hist

Value

unitHist returns class histogram with an extra element named ‘heights’. ‘heights’ is proportional to density, but normalized relative to maximum density. Panel functions are used for side effects.

Author(s)

Tim Bergsma

References

http://metrumrg.googlecode.com

See Also


metrumrg documentation built on May 2, 2019, 5:55 p.m.