aoi2box {tlocoh} | R Documentation |
Converts a dataframe with upper-left / lower-right coordinates of a box to a closed polygon
aoi2box(aoi)
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 |
Two column dataframe containing the xy coordinates of a closed rectangle that can be plotted using points
or polygons
You can use the aoi
function to select two coordinates on the active plot window with the mouse. This function facilitates plotting that rectangle.
## Not run: myaoi <- aoi() polygons(myaoi) ## End(Not run)