Skip to content

hist(x, ...) with normal distribution curve

1 message · Rau, Roland

#
Since there are various solutions, here is mine:

hist(rnorm(10000), freq=FALSE)
xvals <- seq(-5,5,length=100)
lines(x=xvals, y=dnorm(xvals))


Is this what you are looking for?
Best,
Roland

+++++
This mail has been sent through the MPI for Demographic Rese...{{dropped}}