.prepare_extent {plotthis}R Documentation

Prepare the extent for spatial plots

Description

Prepare the extent for spatial plots

Usage

.prepare_extent(ext)

Arguments

ext

A numeric vector of length 4 specifying the extent as c(xmin, xmax, ymin, ymax), or a SpatExtent object from the terra package.

Value

A SpatExtent object if ext is a numeric vector, or the original SpatExtent if it is already one. NULL is returned if ext is NULL.


[Package plotthis version 0.7.2 Index]