Debian Codegraph @

man/select.spatial.Rd

raw
1 \name{select.spatial}
2 \alias{select.spatial}
3 \title{ select points spatially }
4 \description{
5 select a number of points by digitizing the area they fall in
6 }
7 \usage{
8 select.spatial(data, digitize = TRUE, pch = "+", rownames = FALSE)
9 }
10 \arguments{
11 \item{data}{data object of class, or extending \code{SpatialPoints};
12 this object knows about its x and y coordinate }
13 \item{digitize}{ logical; if TRUE, points in a digitized polygon
14 are selected; if FALSE, points identified by mouse clicks are selected }
15 \item{pch}{plotting character used for points}
16 \item{rownames}{logical; if FALSE, row (coordinate) numbers are returned;
17 if TRUE and data contains a data.frame part, row.names for selected points
18 in the data.frame are returned. }
19 }
20 \value{ if rownames == FALSE, array with either indexes (row numbers)
21 of points inside the digitized polygon; if rownames == TRUE, character
22 array with corresponding row names in the data.frame part }
23 \seealso{\link{point.in.polygon}, \link{locator},
24 \link{SpatialPoints-class}, \link{SpatialPointsDataFrame-class}
25 }
26 \examples{
27 data(meuse)
28 ## the following command requires user interaction: left mouse
29 ## selects points, right mouse ends digitizing
30 data(meuse)
31 coordinates(meuse) = c("x", "y")
32 # select.spatial(meuse)
33 }
34 \keyword{models}