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

Ross Ihaka (ihaka@stat.auckland.ac.nz)
Mon, 18 Aug 1997 12:23:46 +1200 (NZST)


Date: Mon, 18 Aug 1997 12:23:46 +1200 (NZST)
Message-Id: <199708180023.MAA10567@stat1.stat.auckland.ac.nz>
From: Ross Ihaka <ihaka@stat.auckland.ac.nz>
To: r-help@stat.math.ethz.ch
Subject: Re: R-beta: Bug or feature?  [+ better histograms]
In-Reply-To: <9708180000.AA15558@attunga.stats.adelaide.edu.au>
 <9708172313.AA15474@attunga.stats.adelaide.edu.au>

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".
	Ross
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=