A convenient wrapper around ggplot
to generate a formatted plot of a single raster.
oneRasterPlot(
rast,
land = NA,
landCol = "black",
scaleRange = NA,
graticule = TRUE,
title = "A Raster",
verbose = TRUE,
...
)
A single SpatRaster
layer on a continuous
scale.
An optional coastline polygon shapefile
of types sf
or SpatRaster
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
.
logical
. Do you want a grid of lon/lat lines?
A title for the plot.
logical
. Switching to FALSE
mutes message alerting
user if input rast
values exceed a specified scaleRange
.
Additional optional arguments to pass to
plot
initial plot object or viridis
.
A plot of mapping the values of the input raster layer