View source: R/spatial_tools.R
xy_from_click | R Documentation |
This function defines a two-column matrix of x, y coordinates from clicked locations on a map.
xy_from_click()
The function returns a two-column matrix with coordinates.
Edward Lavender
## Not run:
raster::plot(dat_gebco)
xy <- xy_from_click()
graphics::points(xy, col = "red")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.