en_extrapolation {enerscape} | R Documentation |
This check if computation of the energy landscape extrapolates from the test set of enerscape::pontzer (2016).
en_extrapolation(en, plot = TRUE)
en |
an enerscape object. |
plot |
plot areas where slope is extrapolated. |
Check if body mass or incline are outside the test range of the
model. If slope extrapolations are detected and plot = TRUE
, a plot
of where extrapolations occur is displayed.
A list with booleans if body size or inclines extrapolates and a rasterLayer for where incline extrapolates. The rasterLayer is returned only if extrapolations are present.
enerscape::pontzer, H. (2016). A unified theory for the energy cost of legged locomotion. Biology Letters, 12(2), 20150935. doi: 10.1098/rsbl.2015.0935.
library(raster)
library(enerscape)
data("volcano")
dem <- raster(volcano)
en <- enerscape(dem, 10, unit = "kcal", neigh = 16)
en_extrapolation(en, plot = TRUE)