raster.resid | R Documentation |
This function builds a linear model for the relationship between two rasters, and returns the linear model and a spatial raster of the residuals from that model.
raster.resid(x, y)
x |
A raster or RasterLayer object, or ENMTools model object containing a suitability raster. |
y |
Another raster or RasterLayer object, or ENMTools model object containing a suitability raster. |
results A list containing a raster of residuals from a linear regression between the two supplied rasters and the linear model itself.
data(euro.worldclim)
raster.resid(euro.worldclim[[1]], euro.worldclim[[2]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.