raster.cor | R Documentation |
Calculates the correlation coefficient between two rasters.
raster.cor(x, y, method = "spearman")
x |
Either a raster or an ENMTools model object with a suitability raster. |
y |
Either a raster or an ENMTools model object with a suitability raster. |
method |
The method to be used for calculating correlations. Defaults to spearman, but can take "kendall" or "pearson" as well. |
A numeric correlation coefficient.
data(euro.worldclim)
raster.cor(euro.worldclim[[1]], euro.worldclim[[2]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.