Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

zoom

Zoom in on a map


Description

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

Usage

## S4 method for signature 'SpatRaster'
zoom(x, e=draw(), maxcell=10000, layer=1, new=FALSE, ...)

## S4 method for signature 'SpatVector'
zoom(x, e=draw(), new=FALSE, ...)

Arguments

x

SpatRaster

e

SpatExtent

maxcell

positive integer. Maximum number of cells used for the map

layer

positive integer to select the layer to be used

new

logical. If TRUE, the zoomed in map will appear on a new device (window)

...

additional arguments passed to plot

Value

SpatExtent (invisibly)

See Also


terra

Spatial Data Analysis

v1.2-10
GPL (>= 3)
Authors
Robert J. Hijmans [cre, aut] (<https://orcid.org/0000-0001-5872-2872>), Roger Bivand [ctb] (<https://orcid.org/0000-0003-2392-6140>), Karl Forner [ctb], Jeroen Ooms [ctb] (<https://orcid.org/0000-0002-4035-0289>), Edzer Pebesma [ctb] (<https://orcid.org/0000-0001-8049-7069>)
Initial release
2021-05-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.