Robert Lundqvist wrote: >Is there any neat way to add a curve (frequency function or the like) to a >histogram or other plots? I haven't found one yet... > >Robert > >______________________________________________ >[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 > ???
dat<-rnorm(100) hist(dat,prob=TRUE) x<-seq(-3.5,3.5,length=100) y<-dnorm(x) lines(x,y) have a look at: http://cran.at.r-project.org/doc/manuals/R-intro.pdf Peter Wolf ______________________________________________ [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
