hist: rel.freqs

Philippe Lambert plambert@ulg.ac.be
Fri, 23 Jan 1998 14:53:10 +0100

In R0.61,

In hist(), should the line
  rel.freqs <- counts/(sum(x) * diff(breaks))
computing the relative frequencies or height of the rectangles 
in a histogram not be
  rel.freqs <- counts/(sum(counts) * diff(breaks))
instead, or do I misunderstand something?


 Philippe Lambert                   Tel: (+32)-4-3663091
 Universite de Liege               Fax: (+32)-4-3662983
 Faculte d'Economie, de Gestion et de Sciences Sociales
 Sart-Tilman B31, B-4000 Liege
 Belgium                      email: plambert@ulg.ac.be
r-devel 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-devel-request@stat.math.ethz.ch