Skip to content
Prev 140045 / 398502 Next

hist densities

Hi there,

I was wondering why

x<-rnorm(n=5000,mean=1.5,sd=0.25)
h<-hist(x)
sum(h$density)

[1] 10

I thought the integral of the histogram should be one? These seems  
strange to me, or am I being silly...

Regards Luke Spadavecchia

PS. I'm using R 2.5.1 on Mac OSX