> > >Knut Krueger wrote:
> >  
> >
> >>I am looking for a histogram or box plot with the adding  normal 
> >>distribution  curve
> >>I think that must be possible, but I am not able to find 
> out how to do.
> >>
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}}

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to