Message-ID: <83536658864BC243BE3C06D7E936ABD5027BAC0F@xchg1.statistik.local>
Date: 2005-09-21T06:22:52Z
From: TEMPL Matthias
Subject: Add function to histogram?
Hello,
E.g. with lines() or add a new plot to the current plot with par(new = TRUE) (and set equal xlim and ylins??s in the plot function)
r <- rnorm(100)
hist(r,freq=FALSE)
lines(density(r))
Best,
Matthias
>
> 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
>