[R] Label data points in scatterplot matrices

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Dec 3 22:42:13 CET 2004

Mauricio Esguerra wrote:

> Hello,
> I am new to R and would like to know how to label data points in the
> matrices of scatterplots made by the pairs() command.
> To be more specific, I want to assign a number to each data point, instead
> of the small circumference that appears as a data point.
> If anyone here knows if its possible to do this with R, I would greatly
> appreciate your help.

   A <- data.frame(a1=1:3, a2=1:3, a3=1:3)
   pairs(A, pch=letters[1:3])

Uwe Ligges

> Thank you,
> Mauricio Esguerra
> PhD candidate
> Chemistry and Chemical Biology Department
> Rutgers, the State University of New Jersey
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

More information about the R-help mailing list