n=
.click(object, n=1, id=FALSE, xy=FALSE, cell=FALSE, type = "n", ...)
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 outputobject
at the point(s) clicked on; and the coordinates of the center of the cell if xy==TRUE
.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