[R] (no subject)

Charles C. Berry cberry at tajo.ucsd.edu
Mon Jul 12 05:44:49 CEST 2010


On Sun, 11 Jul 2010, li li wrote:

> Hi all,
>   I want to add the red color under the standard normal curve to the right
> of 1.96.
> Can anyone give me a hand? Please see the code below.
>   Thank you.
>
>
> x <- seq(-4, 4, length=100)
> hx <- dnorm(x)
> par(pty="s")
> plot(x, hx, type="l", xlab="z value",
>  ylab="Density", main="density of N(0,1)")
> abline(v=1.96, col="red")


?polygon
example(polygon)



>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>

Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901



More information about the R-help mailing list