Skip to content

problems with hist()

2 messages · Guenter Tirler, Brian Ripley

#
Hi,
I try to compute the counts of a histogram of random numbers. But I
get different results depending on the limits (-10,10) or (-1000,1000)
although all numbers are in the interval (-10,10).

Have I done somthing wrong?
[1] 1000000
[1] 1000000
[1] 159035 149461 192003 191478 149789 158234
[1] 159009 149452 192004 191464 149805 158266

Thanks
G?nter
#
As a last resort, try read the help page:

     A numerical tolerance of 1e-7 times the range of the breaks is
     applied when counting entries on the edges of bins. 

If you use a silly range, this will affect your results.
On Tue, 20 May 2003, Guenter Tirler wrote: