The function find_breaks() isolates a piece of code of
the function truehist() from package MASS
that is used to compute the set of breakpoints to be applied for the
construction of the histogram.
find_breaks(x, nbins = "Scott", h, x0 = -h/1000)numeric. A vector.
integer or character. The suggested number of bins.
Either a positive integer, or a character string naming a rule:
"Scott" (the default) or "Freedman-Diaconis" or "FD".
(Case is ignored.)
numeric. The bin width, a strictly positive number (takes precedence over nbins).
numeric. Shift for the bins -
the breaks are at x0 + h * (..., -1, 0, 1, ...).
A numeric vector.
histo() in this package;
truehist() from package MASS;
hist() from package graphics.