zoom

0th

Percentile

Zoom in on a map

Zoom in on a map (plot) by providing a new extent, by default this is done by clicking twice on the map.

Keywords
spatial
Usage
zoom(x, ...) 
# S4 method for Raster
zoom(x, ext=drawExtent(), maxpixels=100000, layer=1, new=TRUE, useRaster=TRUE, ...)

# S4 method for Spatial zoom(x, ext=drawExtent(), new=TRUE, ...)

# S4 method for missing zoom(x, ext=drawExtent(), new=TRUE, ...)

Arguments
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 TRUE, the zoomed in map will appear on a new device (window)

useRaster

Logical. If TRUE, a bitmap raster is used to plot the image instead of polygons

...

additional paramters for plot

Value

Extent object (invisibly)

See Also

drawExtent, plot

Aliases
  • zoom
  • zoom,Raster-method
  • zoom,Spatial-method
  • zoom,missing-method
Documentation reproduced from package raster, version 2.9-5, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.