Learn R Programming

terra (version 1.7-55)

plot_extent: Plot a SpatExtent

Description

Plot a SpatExtent. Use lines to add a SpatExtent to an existing map.

See plot for plotting other object types.

Usage

# S4 method for SpatExtent,missing
plot(x, y, ...)

Arguments

x

SpatExtent

y

missing

...

additional graphical arguments for lines

See Also

Examples

Run this code
r <- rast()
plot(ext(r))

Run the code above in your browser using DataLab