Usage
## S3 method for class 'Raster':
click(x, n=1, id=FALSE, xy=FALSE, cell=FALSE, type="n", ...)
## S3 method for class 'SpatialGrid':
click(x, n=1, id=FALSE, xy=FALSE, cell=FALSE, type = "n", ...)
## S3 method for class 'SpatialPolygons':
click(x, n=1, id=FALSE, xy=FALSE, type = "n", ...)
## S3 method for class 'SpatialLines':
click(x, ...)
## S3 method for class 'SpatialPoints':
click(x, ...)
Arguments
x
Raster*, or Spatial* object (or missing)
n
number of clicks on the map
id
Logical. If TRUE, a numeric ID is shown on the map that corresponds to the row number of the output
xy
Logical. If TRUE, xy coordinates are included in the output
cell
Logical. If TRUE, cell numbers are included in the output
type
One of "n", "p", "l" or "o". If "p" or "o" the points are plotted; if "l" or "o" they are joined by lines. See ?locator
...
additional graphics parameters used if type != "n" for plotting the locations. See ?locator