saveExtent: Draw an extent on a raster plot and print command to console

Description Usage Arguments Value Author(s) See Also Examples

Description

Identical to drawExtent except that the resulting extent is printed to the console with a formatted extent command which can be copied and pasted to a script for reproducability.

Usage

1
saveExtent(..., digits = 0)

Arguments

...

Arguments to be passed to drawExtent

digits

integer indicating the number of decimal places (passed to round)

Value

an object of class extent with the side effect of having the extent command with resulting parameters printed to the console for reproducability.

Author(s)

Ben DeVries

See Also

drawExtent

Examples

1
2
3
4
5
6
## Not run: 
data(tura)
plot(tura, 6)
e <- saveExtent() # draw extent on the plot, and associated extent() command will be printed to console, while extent is saved to workspace

## End(Not run)

loicdtx/bfastSpatial documentation built on May 21, 2019, 7:37 a.m.