Skip to content
Prev 68671 / 398502 Next

Density curve over a histogram

On Wed, 27 Apr 2005 19:06:07 +0100 Paul Smith wrote:

            
To quote Simon `Yoda' Blomberg: "This is R. There is no if. Only how."
(see fortune("Yoda"))

Try:

R> x <- rnorm(100)
R> hist(x, freq = FALSE)
R> curve(dnorm, col = 2, add = TRUE)

Z