en_extrapolation {enerscape}R Documentation

Check if model extrapolates

Description

This check if computation of the energy landscape extrapolates from the test set of enerscape::pontzer (2016).

Usage

en_extrapolation(en, plot = TRUE)

Arguments

en

an enerscape object.

plot

plot areas where slope is extrapolated.

Details

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.

Value

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.

References

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.

Examples

library(raster)
library(enerscape)
data("volcano")
dem <- raster(volcano)
en <- enerscape(dem, 10, unit = "kcal", neigh = 16)
en_extrapolation(en, plot = TRUE)

[Package enerscape version 0.1.3 Index]