Hi,

use dnorm() for the density and polygon() to shade the area underneath, with suitably many x values so your density looks smooth.

HTH,
Stephan


claytonmccandless schrieb:
I want to shade the area under the curve of the standard normal density.
Specifically color to the left of -2 and on. How might i go about doing
this?

Thanks

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to