R-beta: Bug or feature? [+ better histograms]

Ross Ihaka ihaka at stat.auckland.ac.nz
Mon Aug 18 02:23:46 CEST 1997

Bill Venables writes:

 > Unfortunately it still has that rather curious aspect of not
 > taking you seriously when you ask for N (yes, N) cells.  It is a
 > V&R function and we thought people loved that part...
 > (In fact yesterday I was using it and when I asked for 5 cells I
 > got 6.  For 6 I got 7.  For 7 I got ... 14!)
 > I could fix it, of course.
I guess I missed the "pretty" on my first pass through.  Since you
don't end up with "nice" cell endpoints anyway, why not just compute a
binwidth (e.g. h.scott or bw.scott) and supply this as the default "h"
argument, leaving the user the option of specifying an exact number of
cells.  If you jack things up right you could use the same bandwidth
function for both "density" and "hist".
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list