Creates a facet plot of correlation between selected attributes from a raster_list representing different spatial_scales

crossscale_correlations(
  raster_list = NULL,
  att_names = NULL,
  selected = NULL,
  spatial_scales = NULL,
  corr_type = "spearman",
  clamp_raster = FALSE
)

Arguments

raster_list

a list of stars or RasterStack objects

att_names

character, the attributes corresponding to each band

selected

character, the selected attributes

spatial_scales

numeric, the spatial scales corresponding to each raster in raster_list

corr_type

character, the type of correlation to compute, 'pearson' or 'spearman'

clamp_raster

logical, if TRUE clamps the rasters using clamp_params

Value

if clamp is FALSE a ggplot object, otherwise a named list with two elements, a ggplot object and a list of clamped rasters.