Description Usage Arguments Value References Examples

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.

1 |

`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 |

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

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

1 2 3 4 5 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.