Re: [R] histogram cells

About this list Date view Thread view Subject view Author view Attachment view

From: Prof Brian Ripley (ripley@stats.ox.ac.uk)
Date: Sat 28 Jun 2003 - 16:48:19 EST


Message-id: <Pine.LNX.4.44.0306280745440.23533-100000@gannet.stats>


?hist says

 breaks: one of:

...
             * a single number giving the number of cells for the
                histogram,

...

          In the last three cases the number is a suggestion only.

On Fri, 27 Jun 2003, Tommy E. Cathey wrote:

> Why does the following code generate a Histogram of 7 cells
> instead of 5?

> > data(islands)
> > str(hist(sqrt(islands), br = 5, col="lightblue", border="pink"))
> List of 7

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:12:09 EST