Re: [R] plots - scatterplots - find index of a point in a list

From: John Kane <jrkrideau_at_yahoo.ca>
Date: Tue, 08 May 2007 10:12:08 -0400 (EDT)


Try ?locator
--- gatemaze_at_gmail.com wrote:

> Hi,
>
> is it possible to find the index of a point of a
> plot (e.g. scatterplot) in
> an easy way?
>
> Eg.
> x <- c(1:5); y <- c(1:5);
> plot(x, y);
>
> On the plot if I move my cursor on top of a point or
> click on it is it
> possible to have its index printed or its exact
> value? Any clues?
>
> 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
> and provide commented, minimal, self-contained,
> reproducible code.
>



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 and provide commented, minimal, self-contained, reproducible code. Received on Tue 08 May 2007 - 14:23:32 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 08 May 2007 - 16:31:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.