[R] bucketing in histograms

Uwe Ligges ligges at statistik.tu-dortmund.de
Thu Apr 10 11:35:17 CEST 2008



Mark Farnell wrote:
> Hi
> 
> I wish to draw a histogram for a numeric array and specify a bucket
> size (say 5 units  per bar and the height of that bar equals to the
> average of that 5 units)
>
> how can I do that?

Sometimes I wonder what is going on here. Folks, please read the posting 
guide and the help pages before posting!
In this case ?hist clearly reveals how to set breaks.

Uwe Ligges



> Thanks!
> 
> Mark
> 
> ______________________________________________
> R-help at 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.



More information about the R-help mailing list