View source: R/raster.cor.plot.R
raster.cor.plot | R Documentation |
Takes a raster stack and returns a data frame containing Pearson correlation coefficients between the included rasters
raster.cor.plot(env, method = "pearson")
env |
A SpatRaster object containing two or more rasters |
method |
Type of correlation to measure. Can do "pearson", "kendall", or "spearman" |
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.
data(euro.worldclim)
raster.cor.plot(euro.worldclim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.