Re: [R] superimpose density line over hist

From: Albert Vilella <avilella_at_gmail.com>
Date: Wed 14 Dec 2005 - 03:01:20 EST

This certainly did the trick,

Thanks Ted, Sean, Romain, Dimitris, Lian and Andy,

> alnlength<-rchisq(1000,4)
> x<-0.25*(0:100)
> hist(alnlength,breaks=0.25*(0:100))
> lines(x,1000*dchisq(x,4)*0.25)

And apologies for my "newbieness" in the posting,

    Albert.



R-help@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 Received on Wed Dec 14 03:48:55 2005

This archive was generated by hypermail 2.1.8 : Wed 14 Dec 2005 - 09:31:36 EST