R/plot.R
draw_extent.Rd
Draw an extent with two clicks
draw_extent(show = TRUE, ...)
the drawn extent
arguments pass to graphics::rect()
graphics::rect()
an extent, numeric vector of xmin,xmax,ymin,ymax
if (interactive()) { plot(1) draw_extent(show = TRUE) ## click twice on the plot }