[R] Add function to histogram?
Peter Wolf
pwolf at wiwi.uni-bielefeld.de
Wed Sep 21 10:00:55 CEST 2005
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
>
>______________________________________________
>R-help at stat.math.ethz.ch 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
More information about the R-help
mailing list