On 9/20/05, Robert Lundqvist <[EMAIL PROTECTED]> 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...
Try this: set.seed(1) z <- rnorm(100) library(MASS) truehist(z) lines(density(z)) curve(dnorm, color = "red", add = TRUE) ______________________________________________ [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
