[R] Shading area under PDF of t -distribution

Chung-hong Chan chainsawtiney at gmail.com
Fri Nov 2 02:52:29 CET 2007


Dear R experts,

I have plot the PDF of t distribution with df = 74.
curve(dt(x,df=74),from=-4, to=4)

how can I shade the area under curve (for example, col="red") from t=+- 1.996?

Thank you.
Regards,
CH

-- 
CH Chan
Research Assistant - KWH
http://www.macgrass.com



More information about the R-help mailing list