Learn R Programming

terra (version 1.8-5)

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 SpatRaster
zoom(x, e=draw(), maxcell=100000, layer=1, new=FALSE, ...)

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

Value

SpatExtent (invisibly)

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

See Also

draw, plot