Re: [R] Problem on Histogtam

2006-08-26 Thread jim holtman
try thie: r <- rnorm(100,4,1) hist(r, freq=FALSE) r.f <- function(x)dnorm(x, mean(r), sd(r)) curve(r.f, from=min(r), to=max(r), add=TRUE, col='red') On 8/26/06, stat stat <[EMAIL PROTECTED]> wrote: > Dear all, > > May be question seems trivial for most of the R > users, but really at least for

[R] Problem on Histogtam

2006-08-26 Thread stat stat
Dear all, May be question seems trivial for most of the R users, but really at least for me, this comes out to be very problematic. Suppose I have the following data: > r [1] -0.0008179960 -0.0277968529 -0.0105731583 -0.0254050262 0.0321847131 0.0328170674 [7] 0.0431894392 -0.0217614918