This function defines a two-column matrix of x, y coordinates from clicked locations on a map.

xy_from_click()

Value

The function returns a two-column matrix with coordinates.

Author

Edward Lavender

Examples

if (FALSE) {
raster::plot(dat_gebco)
xy <- xy_from_click()
graphics::points(xy, col = "red")
}