[R] superimpose density line over hist

From: Albert Vilella <avilella_at_gmail.com>
Date: Wed 14 Dec 2005 - 00:23:17 EST

Hi all,

I'm trying to superimpose a rchisq density line over a histogram with something like:

lines(density(rchisq(length(alnlength), 4)),col="red")

But the rchisq line won't appear anywhere,

Anyone knows what I am missing here?

Thanks in advance,


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 01:21:31 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:35 EST