I have this code:

x=seq(80-3*15,80+3*15,length=200);
y=dnorm(x,80,15)
plot(x,y,type="l",lwd=2,col="red")
x=seq(80-3*15,70,length=100)
y=dnorm(x,80,15)
polygon(c(0,x,70),c(0,y,0),col="gray")
text(70,0.005,"70")

I'd like to draw the number "70" in red underneath a vertical arrow pointing
to the position of the number 70 on the horizontal axis.

Any ideas?

Thanks.

David.



--
View this message in context: 
http://r.789695.n4.nabble.com/Margin-annotation-tp4646955.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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