imapToRAST | R Documentation |
imap
to plotRAST
imapToRAST
will zoom into an area using imap
and then use the same bounding box to replace the figure with a raster image using plotRAST
.
imapToRAST(landOverlay = FALSE, ...)
landOverlay |
Use |
... |
Additional arguments passed to |
A list with the latitude and longitude ranges used is invisibly returned.
John R. Wallace: John.Wallace@noaa.gov
imap
, plotRAST
## Not run:
# imap() is used to zoom into an area. When the interaction is stopped, the figure will be replaced with a raster image.
imapToRAST()
# For faster download times, use the 'etopo1' layer with its lower resolution for all areas.
imapToRAST(autoLayer = FALSE)
# Compare the bathymetry of the ice sheet in Greenland with the bedrock underneath. After imapToRAST() is run, use the zoom tool of imap() create a bounding box around all of Greenland.
(BB <- imapToRAST()) # Default is ETOPO1_ice_surface
dev.new()
plotRAST(latrange = BB$latrange, longrange = BB$longrange, layer = 'ETOPO1_ice_surface', landOverlay = F) # Start over with the first figure for the same look as below
dev.new()
plotRAST(latrange = BB$latrange, longrange = BB$longrange, layer = 'ETOPO1_bedrock', landOverlay = F)
# Compare the bathymetry in Southern California with the 3 available resolutions. (Zoom into a smallish part of So. Cal. on the water with or without land.)
BB <- imapToRAST(layer = 'ETOPO1_ice_surface')
dev.new()
plotRAST(latrange = BB$latrange, longrange = BB$longrange, layer = 'ETOPO1_ice_surface', landOverlay = F) # Start over with the first figure for the same look as below
dev.new()
plotRAST(latrange = BB$latrange, longrange = BB$longrange, layer = 'crm', landOverlay = F)
dev.new()
plotRAST(latrange = BB$latrange, longrange = BB$longrange, landOverlay = F)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.