[R] text() to label points in ggplot

stephenb stenka1 at go.com
Thu May 14 19:22:16 CEST 2009


is there a way to label points in a graph using text(locator(1),"text")
after ggplot() or qplot() ?

> qplot(date, psavert, data = economics, geom = "line",main="jhdjd")->p
> p+opts(text(locator(1),"HHHH"),new=T)

does not work.
-- 
View this message in context: http://www.nabble.com/text%28%29-to-label-points-in-ggplot-tp23545135p23545135.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list