[R] label point

Gabor Grothendieck ggrothendieck at gmail.com
Tue Nov 29 08:17:48 CET 2005


See ?text
e.g.

plot(m[,1], m[,2]) # or plot(m)
text(m[,1], m[,2], pos = 3, cex = 0.7) # 3 means above, 0.7 is 70% size



On 11/29/05, Robert <samrobertsmith at yahoo.com> wrote:
>  Hi, I have a matrix:
>  [,1] [,2]
>  [1,] 11 31
>  [2,] 44 50
>  [3,] 23 100
>  [4,] 90 31
>  I use plot to draw the four points. Is there any way to label the point? for insatnce, for (11,31), it is "1", for (44,50), it is "4".
>  Thanks!
>
>
>
>
> ---------------------------------
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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