aoi2box: Converts a dataframe with upper-left / lower-right...

Description Usage Arguments Value Note See Also Examples

Description

Converts a dataframe with upper-left / lower-right coordinates of a box to a closed polygon

Usage

1

Arguments

aoi

A two-column two-row data frame or matrix with x in the first column and y in the second columm. The upper left point and the lower right point in the first and second rows respectively

Value

Two column dataframe containing the xy coordinates of a closed rectangle that can be plotted using points or polygons

Note

You can use the aoi function to select two coordinates on the active plot window with the mouse. This function facilitates plotting that rectangle.

See Also

aoi

Examples

1
2
3
4
5
## Not run: 
myaoi <- aoi()
polygons(myaoi)

## End(Not run)

tlocoh documentation built on May 2, 2019, 5:27 p.m.