zoom | R Documentation |
Zoom in on a map (plot) by providing a new extent, by default this is done by clicking twice on the map.
zoom(x, ...)
## S4 method for signature 'Raster'
zoom(x, ext=drawExtent(), maxpixels=100000, layer=1, new=TRUE, useRaster=TRUE, ...)
## S4 method for signature 'Spatial'
zoom(x, ext=drawExtent(), new=TRUE, ...)
## S4 method for signature 'missing'
zoom(x, ext=drawExtent(), new=TRUE, ...)
x |
Raster* or Spatial* (vector type) object |
ext |
Extent object, or other object from which an extent can be extracted |
maxpixels |
Maximum number of pixels used for the map |
layer |
Positive integer to select the layer to be used if x is a mutilayer Raster object |
new |
Logical. If |
useRaster |
Logical. If |
... |
additional paramters for base plot |
Extent object (invisibly)
drawExtent
, plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.