plotSpatial: Create a 'ggplot' of a raster or 'sf' object.

View source: R/terra-raster-utils.R

plotSpatialR Documentation

Create a ggplot of a raster or sf object.

Description

Can be used with SpaDES.core::Plots.

Usage

plotSpatial(x, plotTitle, limits = NULL, field = NULL)

Arguments

x

SpatRaster, RasterLayer, SpatVector or sf object

plotTitle

character. A title for the plot passed to ggplot::labs(title = plotTitle).

limits

TODO

field

character. If x is sf or SpatVector, a field to plot.


PredictiveEcology/LandR documentation built on June 7, 2024, 4:16 p.m.