Skip to content
Prev 472 / 63421 Next

R-alpha: Re: R-beta: Bug or feature? [+ better histograms]

Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> writes:
Ugh. Please do NOT do that! Some of us need to teach histograms to
people who have difficulties with integrals (and also in recognizing
the connection between a barplot and a step function), so we have to
make do with "shape of curve" considerations, at least in the
beginning. The last thing we need is inexplicable y-axes.

The "# in bin" is not really problematic as long as the the bins are
of the same size and *much* easier to explain to students. 

Even for a statistician, the number is really what conveys the
accuracy estimate that you need when you try to evaluate whether a
histogram matches a given density.

Make it an option, e.g. hist(x,as.density=T). People who can
understand why the "sum of area of blocks should be 1" can also figure
out how to add an option to a function call.

I could easily do without the "prettification" silliness, though.