[R] Density curve over a histogram
Vincent Goulet
vincent.goulet at act.ulaval.ca
Wed Apr 27 20:18:21 CEST 2005
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
More information about the R-help
mailing list