Description Usage Arguments Details Value References Examples
View source: R/velocity_functions.R
These functions compute velocity for the average hiker as a function of slope.
1 2 3 | hf_tobler(x, on.path = TRUE)
hf_campbell(x, decile = 10)
|
x |
|
on.path |
|
decile |
|
Where θ is the slope, velocity is equal to
Tobler (1993)
1.6 * exp(-3.5 * θ + 0.5) * d
where d is a weight equal to 1 for on- and 0.6 for off-path hiking.
Campbell (2019)
c * (1\(2b) * exp(0 - |(x-μ)/b|) + ex + d
By default, the Tobler hiking function returns velocity in km/hr. The hf_tobler
function converts to m/s.
A vector
of velocity values in m/s.
Tobler, Waldo R. (1993). "Three Presentations on Geographical Analysis and Modeling: Non-Isotropic Geographic Modeling, Speculations on the Geometry of Geography, and Global Spatial Analysis." National Center for Geographic Information and Analysis, Technical Report 93-1.
Campbell, Michael J., Philip E. Dennison, Bret W. Butler, and Wesley G. Page (2019). "Using crowdsourced fitness tracker data to model the relationship between slope and travel rates. Applied Geography 106, 93-107.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
slope <- seq(-90, 90, by = 1)
velocity <- hf_tobler(slope, on.path = TRUE)
plot(velocity ~ slope, type = "l", ylab = "velocity")
velocity <- hf_tobler(slope, on.path = FALSE)
plot(velocity ~ slope, type = "l", ylab = "velocity")
velocity <- hf_campbell(slope, decile = 10)
plot(velocity ~ slope, type = "l", ylab = "velocity")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.