select.spatial {gstat} | R Documentation |
select a number of points by digitizing the area they fall in
select.spatial(x = data$x, y = data$y, data, pch = "+", n = 512)
x |
numerical array of x-coordinates of points |
y |
numerical array of y-coordinates of points |
data |
optional; data frame containing variables x and y |
pch |
plotting character to be used for points |
n |
default number of points to locate, can be overridden manually |
array with indexes (row numbers) of points inside the polygon digitized
data(meuse) ## the following command requires user interaction: left mouse ## selects points, right mouse ends digitizing # select.spatial(data=meuse)