View source: R/raster.cor.matrix.R
raster.cor.matrix | R Documentation |
Takes a raster stack and returns a data frame containing Pearson correlation coefficients between the included rasters
raster.cor.matrix(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 data frame of correlation coefficients for a set of rasters.
data(euro.worldclim)
raster.cor.matrix(euro.worldclim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.