Re: [R] superimpose density line over hist

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Wed 14 Dec 2005 - 01:16:10 EST


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@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
>
>



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 02:05:19 2005

This archive was generated by hypermail 2.1.8 : Wed 14 Dec 2005 - 04:31:15 EST