crossscale_correlations: Creates a facet plot of correlation between 'selected'...

Description Usage Arguments Value

View source: R/crossscale_correlations.R

Description

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

Usage

1
2
3
4
5
6
7
8
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.


hrvg/statisticalRoughness documentation built on March 12, 2021, 4:55 p.m.