Select an area of interest on a plot using the mouse

Share:

Description

Allows the user to select an area of interest (box) by clicking on the active plot window

Usage

1
aoi(draw.poly = TRUE, draw.poly.col = "black", status = TRUE)

Arguments

draw.poly

Whether to draw the box on the plot. T/F.

draw.poly.col

The color to use if drawing the box on the plot. Color value. Ignored if draw.poly=FALSE.

status

Show messages to the user

Value

A two-column xy data frame containing the upper left point and the lower right point in the first and second rows respectively

Note

This function requires a plot window to be open

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.