raster.cor.plot: Takes a raster stack and returns a data frame containing...

View source: R/raster.cor.plot.R

raster.cor.plotR Documentation

Takes a raster stack and returns a data frame containing Pearson correlation coefficients between the included rasters

Description

Takes a raster stack and returns a data frame containing Pearson correlation coefficients between the included rasters

Usage

raster.cor.plot(env, method = "pearson")

Arguments

env

A SpatRaster object containing two or more rasters

method

Type of correlation to measure. Can do "pearson", "kendall", or "spearman"

Value

A list of two plots. The first maps the correlations between rasters into an MDS space, so that predictors that fall close together in that space are more correlated. The second plot is a heatmap depicting the correlations between pairs of layers.

Examples

data(euro.worldclim)
raster.cor.plot(euro.worldclim)

ENMTools documentation built on April 11, 2023, 6:09 p.m.