Skip to content

bug in histogram rendering (PR#1080)

1 message · Brian Ripley

#
On Thu, 30 Aug 2001 ljlehou@sandia.gov wrote:

            
It should integrate to one, not sum to one.
Can you give us an example of what you think is wrong?
For example,

set.seed(1)
Y <- runif(100)
hist(Y, freq=F)

correctly has an average level of 1, sum 5.

Calling them `relative frequencies' is perhaps misleading (relative to
what?), but then what hist() does by default is not a histogram in the
terminology in use in much of the world.  Some of also argue it is
extremely misleading unless the bins are all of the same width.