Re: [R] Density curve over a histogram

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Thu 28 Apr 2005 - 04:31:01 EST

Paul Smith <phhs80@gmail.com> writes:

> Dear All
>
> I would like to draw a picture with the density curve of a normal
> distribution over a histogram of a set of random numbers extracted
> from the same normal distribution. Is that possible?

Yes. If you look at the scripts that go with the ISwR package, you'll find a detailed example in ch01.R (end of 1.3/beginning of 1.4). Or you could read the book, of course...

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu Apr 28 04:56:05 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:27 EST