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 <[EMAIL PROTECTED]> 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]]
>
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to