A convenient wrapper around spplot
to generate a formatted plot of a single raster.
oneRasterPlot(
rast,
land = NA,
landCol = "black",
scaleRange = NA,
title = "A Raster",
...
)
A single Raster*
layer on a continuous
scale.
An optional coastline polygon shapefile
of type sf
to provide geographic context for the
occurrence points.
Color for land on map.
Optional numeric vector containing
maximum and minimum values for color scale. Helpful
when making multiple plots for comparison. Defaults
to minimum and maximum of input rast
.
A title for the plot.
Additional optional arguments to pass to
spplot
initial plot object or viridis
.
A plot of class trellis
mapping the values
of the input raster layer