Re: [R] R:plot and dots

2005-07-21 Thread Marc Schwartz (via MN)
On Thu, 2005-07-21 at 16:18 +0200, Clark Allan wrote: hi all a very simple question. i have plot(x,y) but i would like to add in on the plot the observation number associated with each point. how can this be done? / allan If you mean the unique observation number associated with

Re: [R] R:plot and dots

2005-07-21 Thread Uwe Ligges
Clark Allan wrote: hi all a very simple question. i have plot(x,y) but i would like to add in on the plot the observation number associated with each point. how can this be done? See ?text Uwe Ligges / allan

[R] R:plot and dots

2005-07-21 Thread Clark Allan
hi all a very simple question. i have plot(x,y) but i would like to add in on the plot the observation number associated with each point. how can this be done? / allan__ R-help@stat.math.ethz.ch mailing list

Re: [R] R:plot and dots

2005-07-21 Thread Adaikalavan Ramasamy
Here is an example : x - rnorm(20) y - rnorm(20) plot(x, y, type=n) text(x, y, labels=as.character(1:20)) Also look into help(identify) if you want to point out specific points. Regards, Adai On Thu, 2005-07-21 at 16:18 +0200, Clark Allan wrote: hi all a very simple question.