Skip to content
Prev 11961 / 398502 Next

breaks in hist()

Prof Brian Ripley <ripley at stats.ox.ac.uk> writes:
or just table(cut(x,breaks=c(0,1000,1e6,1e9,1e12)))

Basically, just don't expect hist() to do sensible things with things
that cannot sensibly be plotted. (Your first column would have a width
of one billionth of the total scale, whereas the last one takes up
99.9% of the total!)