[R] Point labels
Jonathan Baron
baron at cattell.psych.upenn.edu
Wed May 22 01:14:30 CEST 2002
On 05/21/02 18:32, Daniel Mastropietro wrote:
>Is there an option I can easily set to put labels next to the points in a
>simple plot?
>The closest I got to it was to use the option pch, but this replaces the
>point symbol with the character specified, and it is not what I want.
See text(). You might have to add a constant to have the text
_next to_ the symbols. If you want to _replace_ the symbols, you
can use type="n" in plot(), then use text() in the next command.
Here is an example of the latter that I found in one of my own
files:
plot(vmtable[1:2,],type="n");text(vmtable[1:2,],cases)
Here "cases" is a vector with the names I want plotted.
--
Jonathan Baron, Professor of Psychology, University of Pennsylvania
Home page: http://www.sas.upenn.edu/~baron
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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