Learn R Programming

bfastSpatial (version 0.6.2)

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

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

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.

See Also

drawExtent

Examples

Run this code
# 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
# }

Run the code above in your browser using DataLab