Message-ID: <39B6DDB9048D0F4DAD42CB26AAFF0AFAFED665@usctmx1106.merck.com>
Date: 2005-12-13T14:16:10Z
From: Liaw, Andy
Subject: superimpose density line over hist
One thing to check: Are the data in the same range as chisq with 4 df?
Andy
From: Albert Vilella
> Hi all,
>
> I'm trying to superimpose a rchisq density line over a histogram with
> something like:
>
> hist(alnlength)
> 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,
>
> Albert.
>
> ______________________________________________
> 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
>
>