Description Usage Arguments Value Author(s) References See Also
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.
1 2 3 4 |
x |
vector |
y |
vector |
level |
the level at which to draw the histogram, typically supplied by |
horizontal |
typically |
col |
fill color (ignored for |
col.line |
border color if |
fill |
fill color if |
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 |
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.
Tim Bergsma
http://metrumrg.googlecode.com
panel.stratify
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.