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.
# 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# }