Re: [R] R:plot and dots

From: Adaikalavan Ramasamy <ramasamy_at_cancer.org.uk>
Date: Fri 22 Jul 2005 - 09:03:17 EST

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.
>
> 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_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



R-help@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 Received on Fri Jul 22 09:07:29 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:55 EST