draw_extent: Draw extent

View source: R/plot.R

draw_extentR Documentation

Draw extent

Description

Draw an extent with two clicks

Usage

draw_extent(show = TRUE, ...)

Arguments

show

the drawn extent

...

arguments pass to graphics::rect()

Value

an extent, numeric vector of xmin,xmax,ymin,ymax

Examples

if (interactive()) {
plot(1)
draw_extent(show = TRUE)  ## click twice on the plot
}


vaster documentation built on March 10, 2026, 5:08 p.m.