I am looking at histogram breaks, and notice something odd:
> foo <- hist(runif(10000),breaks=20)
> length(foo$breaks)
[1] 21
This makes sense to me.

> foo <- hist(runif(10000),breaks=200)
> length(foo$breaks)
[1] 201
This also makes sense.

BUT
> foo <- hist(runif(10000),breaks=250)
> length(foo$breaks)
[1] 201
> foo <- hist(runif(100000),breaks=250)
> length(foo$breaks)
[1] 201

Why only 201 breaks? Where did the other 50 go?

-- 
------------------------------------
Here miracles become marvels, and
marvels recurring wonders.
-- William Beebe

Dr. Glenn Lawyer
+352 661 967 244
Instituttgruppe for psykiatri
Seksjon Vinderen
PB 85 Vinderen
0319 Oslo
http://folk.uio.no/davidgl

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to