Skip to content
Prev 82654 / 398506 Next

superimpose density line over hist

try

hist(alnlength, prob = TRUE)

moreover I think that you do not need to sample from the Chi-squared 
to draw its density; you could use

dchisq(seq(...), 4))

instead.

I hope it helps.

Best,
Dimitris

----
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/(0)16/336899
Fax: +32/(0)16/337015
Web: http://www.med.kuleuven.be/biostat/
     http://www.student.kuleuven.be/~m0390867/dimitris.htm



----- Original Message ----- 
From: "Albert Vilella" <avilella at gmail.com>
To: <r-help at stat.math.ethz.ch>
Sent: Tuesday, December 13, 2005 2:23 PM
Subject: [R] superimpose density line over hist
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm