Re: [R] Density curve over a histogram

From: Vincent Goulet <vincent.goulet_at_act.ulaval.ca>
Date: Thu 28 Apr 2005 - 04:18:21 EST

Le 27 Avril 2005 14:06, Paul Smith a écrit :
> 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?

Sure. See curve() with add=TRUE. Don't forget to use prob=TRUE when plotting your histogram, though.

Vincent



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:41:29 2005

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