From plambert@ulg.ac.be  Fri Jan 23 13:53:10 1998
From: plambert@ulg.ac.be (Philippe Lambert)
Date: Fri, 23 Jan 1998 14:53:10 +0100
Subject: hist: rel.freqs
Message-ID: <34C8A0C6.11E8BEBE@ulg.ac.be>

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?

Thanks,
 Philippe

-- 
--------------------------------------------------------
 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


hist: rel.freqs
Philippe Lambert