## S3 method for class 'Raster':
click(x, n=Inf, id=FALSE, xy=FALSE, cell=FALSE, type="n", show=TRUE, ...)
## 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, ...)
TRUE
, a numeric ID is shown on the map that corresponds to the row number of the outputTRUE
, xy coordinates are included in the outputTRUE
, cell numbers are included in the outputx
at the point(s) clicked on (or touched by the box drawn).select, drawExtent
r <- raster(system.file("external/test.grd", package="raster"))
#plot(r)
#click(r)
#now click on the plot (map)
Run the code above in your browser using DataLab