Dear R-user,
For the "matplot" of the following data drawn by
>matplot(t, pch=1)
structure(c(2372L, 2494L, 2170L, 2238L, 1918L, 715L, 1573L, 2437L, 2481L,
1881L, 440L, 2165L, 343L, 121L, 597L, 1163L, 1459L, 2093L, 1454L, 1761L, 1872L,
174L, 2040L, 552L, 1403L, 6381L, 1649L, 4136L, 4415L, 10650L, 12111L, 4397L,
9593L, 7040L, 3888L, 8340L, 11475L, 11413L, 3985L, 1077L, 7723L, 1392L, 4099L,
4386L, 4737L, 1731L, 9246L, 7729L, 4264L, 6880L), .Dim = c(25L, 2L))
How can i encircle (locate), on the plotting window, the closest 3 point around
any selected point. More precisely, for x=2372 and y=6381, which are the 3
closest points?
Thanks in advance..
Elisa
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.