Package: slopes 1.0.1

Robin Lovelace

slopes: Calculate Slopes of Roads, Rivers and Trajectories

Functions and example data to support research into the slope (also known as longitudinal gradient or steepness) of linear geographic entities such as roads <doi:10.1038/s41597-019-0147-x> and rivers <doi:10.1016/j.jhydrol.2018.06.066>. The package was initially developed to calculate the steepness of street segments but can be used to calculate steepness of any linear feature that can be represented as LINESTRING geometries in the 'sf' class system. The package takes two main types of input data for slope calculation: vector geographic objects representing linear features, and raster geographic objects with elevation values (which can be downloaded using functionality in the package) representing a continuous terrain surface. Where no raster object is provided the package attempts to download elevation data using the 'ceramic' package.

Authors:Robin Lovelace [aut, cre], Rosa FĂ©lix [aut], Joey Talbot [aut], Dan Olner [rev], Andy Teucher [rev]

slopes.pdf |slopes.html
slopes/json (API)

# Install slopes in R:
install.packages('slopes', repos = c('', ''))

Peer review:

Bug tracker:



23 exports 68 stars 3.47 score 20 dependencies

Last updated 2 months agofrom:c45cf51b5ff44821bc188c6fdb55f04c7c82cd26 (via master)



An introduction to slopes

Rendered fromintro-to-slopes.Rmdusingknitr::rmarkdownon Jun 17 2024.

Last update: 2021-09-14
Started: 2021-08-24

Benchmarking slopes calculation

Rendered frombenchmark.Rmdusingknitr::rmarkdownon Jun 17 2024.

Last update: 2021-09-27
Started: 2021-06-21

Example: gradients of a road network for a given city

Rendered fromroadnetworkcycling.Rmdusingknitr::rmarkdownon Jun 17 2024.

Last update: 2021-09-27
Started: 2021-06-21

Get started

Rendered fromslopes.Rmdusingknitr::rmarkdownon Jun 17 2024.

Last update: 2021-09-27
Started: 2020-05-05

Verification of slopes

Rendered fromverification.Rmdusingknitr::rmarkdownon Jun 17 2024.

Last update: 2021-09-28
Started: 2020-05-06