powered by
Plot sum list of SpatRaster objects.
plot_sumrast(x, normalize = TRUE, add_lines = TRUE, ...)
A plot.
List of SpatRaster objects.
If TRUE, then sum of solutions is normalized at a \([0,1]\) scale.
TRUE
If TRUE, then border lines from maps::map are ploted as well.
Further arguments passed to terra::plot
sumrast
set.seed(42) x <- terra::rast(matrix(rbinom(100, 1, 0.2), nrow=10)) y <- terra::rast(matrix(rbinom(100, 1, 0.8), nrow=10)) plot_sumrast(list(x, y), add_lines = FALSE)
Run the code above in your browser using DataLab