en_path {enerscape}R Documentation

Compute the energy costs for a chosen path

Description

This returns the distance and energy costs of traveling a chosen path. Optionally, the path can be selected by specifying the number of nodes and clicking on the plot.

Usage

en_path(en, p = NULL, draw = FALSE, n = NULL, plot = TRUE)

Arguments

en

an enerscape object.

p

path as SpatialLines.

draw

if TRUE the path will be chosen by drawing it on the map/

n

number of node points for the path.

plot

if TRUE plot the path

Value

A list with elements the path, its travel distance and energy costs.

References

Etten, J. van. (2017). R Package gdistance: Distances and Routes on Geographical Grids. Journal of Statistical Software, 76(1), 1–21. doi: 10.18637/jss.v076.i13.

Pontzer, H. (2016). A unified theory for the energy cost of legged locomotion. Biology Letters, 12(2), 20150935. doi: 10.1098/rsbl.2015.0935.

di Prampero, P. E., Cortili, G., Mognoni, P., & Saibene, F. (1979). Equation of motion of a cyclist. Journal of Applied Physiology, 47(1), 201–206. doi: 10.1152/jappl.1979.47.1.201

Examples


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


[Package enerscape version 0.1.3 Index]