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

From: <gatemaze_at_gmail.com>
Date: Tue, 08 May 2007 14:38:36 +0100


is it possible to find the index of a point of a plot (e.g. scatterplot) in an easy way?

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?


        [[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. Received on Tue 08 May 2007 - 13:51:10 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 - 15:01:29 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.