[R] histogram

David Winsemius dwinsemius at comcast.net
Mon Feb 6 06:12:57 CET 2012


On Feb 5, 2012, at 8:31 PM, Francis Keyes wrote:

> With R and the hist function, is there a way to make a histogram in  
> which
> the y axis denotes propotion with respect to a separate sample  
> dataset of
> the same range instead of frequency?

hist() returns an object with both "counts" and "density". If you had  
a reference population it should be a fairly simple matter to use one  
or the other of those.

-- 
David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list