Re: [R] Density curve over a histogram

From: Vincent Goulet <>
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 mailing list PLEASE do read the posting guide! 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