[R] Possible to "import" histograms in R?

(Ted Harding) Ted.Harding at manchester.ac.uk
Wed Aug 15 21:23:16 CEST 2007


On 15-Aug-07 18:17:27, Greg Snow wrote:
> 
> ________________________________
> 
> Ted Harding wrote:
> [snip]
> 
>> So you if you want the density plot, you would need to calculate
>> this for yourself. E.g.
>> 
>> H1$density <- counts/sum(counts)
>> plot.histogram(H1,freq=FALSE)
> 
> shouldn't that be:
> H1$density <- counts/sum(counts)/diff(brkpts)
> 
> ?

Of course! Thank you.
Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 15-Aug-07                                       Time: 20:23:13
------------------------------ XFMail ------------------------------



More information about the R-help mailing list