Skip to content
Prev 30374 / 398513 Next

plotting the lognormal density curve

For the normal distribution

N <- 1000
xSamples <- rnorm(N, mean=0, sd=1)
hist(xSamples, freq=FALSE)
curve(dnorm(x, mean=0, sd=1), add=TRUE)

Similar for log normal; dlnorm() & friends.

Cheers

Henrik Bengtsson