[R] Label points in pairs()

Paul Murrell p.murrell at auckland.ac.nz
Thu Aug 8 05:36:03 CEST 2002


Hi


Daniel Mastropietro wrote:
> 
> Hello,
> 
> I would like to know if there is a simple way of adding labels to the
> points in a pairs() plot.
> I am thinking of something like using the text() function when adding
> labels to a regular plot.


Does this do the sort of thing you want?

pairs(matrix(rnorm(15), ncol=3), pch=21, bg="grey", cex=4, 
      panel=function(x, y, ...) { points(x, y, ...); 
                                  text(x, y, letters[1:5]) })

 
Paul
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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