[R] Line Graph Labels

Walmes Zeviani walmeszeviani at hotmail.com
Thu Apr 1 20:23:09 CEST 2010


You can adapt the following example

da <- data.frame(y=rnorm(50), x=1:50)
plot(y~x, data=da)
abline(h=c(-2,2), lty=3)
with(da, text(x[abs(y)>2], y[abs(y)>2], label=x[abs(y)>2], pos=2))

Walmes.

-----
..ooo0
...................................................................................................
..(....)... 0ooo...                              Walmes Zeviani
...\..(.....(.....)...     Master in Statistics and Agricultural
Experimentation
....\_)..... )../....       walmeszeviani at hotmail.com, Lavras - MG, Brasil
............
(_/............................................................................................
-- 
View this message in context: http://n4.nabble.com/Line-Graph-Labels-tp1748218p1748431.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list