Re: [R] Labels for Points- 2 character labels?

2006-10-19 Thread David Barron
Is this what you want? plot(e,n) text(e,n,labels=e_order,pos=4) On 18/10/06, ableape [EMAIL PROTECTED] wrote: I would like to be able to label each point in a scatter plot with the numeric order of that point. for example, I create the following plot: plot(e,n) # # now I go back and

[R] Labels for Points- 2 character labels?

2006-10-18 Thread ableape
I would like to be able to label each point in a scatter plot with the numeric order of that point. for example, I create the following plot: plot(e,n) # # now I go back and create my labels # for(i in 1:length(e)) {# lets say e 10 pc -

Re: [R] Labels for Points- 2 character labels?

2006-10-18 Thread Robert Baer
I think you want to use text() x=1:15; y=16:30 plot(x,y) text(x,y, as.character(x), pos=4) - Original Message - From: ableape [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Sent: Wednesday, October 18, 2006 4:59 PM Subject: [R] Labels for Points- 2 character labels? I would like