Plots multiple spatial raster layers or numeric matrices side-by-side with a shared color scale.
Usage
wapor_plot_comparison(
arrays,
titles = NULL,
indicator = "value",
suptitle = NULL,
save = NULL,
dpi = 300,
limits = NULL,
max_cells = 1e+06,
aggregate_fun = NULL
)Arguments
- arrays
Non-empty list of SpatRaster objects or numeric matrices.
- titles
Optional character vector of panel titles.
- indicator
Character indicator name used for labels and palettes.
- suptitle
Optional overall title.
- save
Optional output path.
- dpi
Resolution for saved output.
- limits
Optional common fill limits. Defaults to the global range across all input maps so panels are directly comparable.
- max_cells
Maximum cells per SpatRaster preview. See
wapor_plot_map().- aggregate_fun
Optional reduction function for oversized rasters. See
wapor_plot_map().