An another algorithm for computing histogram breaks. Produces irregular bins.
dhist(x, a=5*diff(quantile(x, c(0.25,0.75))), nbins=10, rx = range(x))
x
a
nbins
rx
Hadley Wickham <h.wickham@gmail.com>