dhist_breaks: Diagonal cut histogram.

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Diagonal cut histogram.

Usage

1
dhist_breaks(a, nbins=10, rx)

Arguments

a

slope. See paper for details.

nbins

number of bins. See paper for details.

rx

range of data, if not taken from data.

Details

An another algorithm for computing histogram breaks. Produces irregular bins.

Value

A function that takes a single parameter, a numeric x specifying the data for which breaks are needed, and returns a vector of breaks.

Author(s)

Lorraine Denby

References

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.

See Also

http://pubs.research.avayalabs.com/pdfs/ALR-2007-003-paper.pdf

Examples

1
2
hist(mtcars$mpg, breaks=dhist_breaks())
hist(mtcars$mpg, breaks=dhist_breaks(a=500))

hadley/densityvis documentation built on May 17, 2019, 9:56 a.m.