raster.cor.plot {ENMTools} | R 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)
[Package ENMTools version 1.1.2 Index]