[R] Scatter plot with labels

Ott Toomet otoomet at econ.dk
Fri Nov 22 16:09:42 CET 2002


Hi,

 | Date: Fri, 22 Nov 2002 09:42:47 +0000 (GMT)
 | From: Tomek <tlr25 at hermes.cam.ac.uk>
 | 
 | Hi,
 | 
 | I have data in form: label, x, y. How can I make a scatter plot from the
 | data, so that the label will be just next to the x, y point?
 | 
 | Tomek

plot(x,y)
text(x,y,labels)

should give you an idea.  Note that you need to adjust x-values
(and/or y-values) for text(), othervise the points and text overlap.

Perhaps it helps

Ott
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list