[R] setting breaks in hist

Bill.Venables at csiro.au Bill.Venables at csiro.au
Tue Jun 21 02:33:54 CEST 2011


The way to guarantee a specific number of panels in the histogram, say n, is to specify n+1 breaks which cover the range of the data.  As far as I know this is the only way.

Bill Venables.

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Erin Hodgess
Sent: Tuesday, 21 June 2011 10:17 AM
To: R help
Subject: [R] setting breaks in hist

Dear R People:

Is there a way to "guarantee" that breaks=n will give you exactly n
breaks, please?

I'm fairly certain that the answer is "no", but thought I'd check.

Thanks,
Erin


-- 
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com

______________________________________________
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