Description Usage Arguments Details Value Author(s) References See Also Examples
Diagonal cut histogram.
1 | dhist_breaks(a, nbins=10, rx)
|
a |
slope. See paper for details. |
nbins |
number of bins. See paper for details. |
rx |
range of data, if not taken from data. |
An another algorithm for computing histogram breaks. Produces irregular bins.
A function that takes a single parameter, a numeric x specifying the data for which breaks are needed, and returns a vector of breaks.
Lorraine Denby
L. Denby and C. Mallows. Variations on the histogram. Journal of Computational and Graphical Statistics, 18 (1):21-31, 2009. URL http://pubs.amstat.org/doi/abs/10.1198/jcgs.2009.0002.
http://pubs.research.avayalabs.com/pdfs/ALR-2007-003-paper.pdf
1 2 | hist(mtcars$mpg, breaks=dhist_breaks())
hist(mtcars$mpg, breaks=dhist_breaks(a=500))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.