[R] Margin annotation

David Arnold dwarnold45 at suddenlink.net
Mon Oct 22 04:25:55 CEST 2012


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.



More information about the R-help mailing list