slopes: Calculate Slopes of Roads, Rivers and Trajectories

Calculates the slope (longitudinal gradient or steepness) of linear geographic features such as roads (for more details, see Ariza-López et al. (2019) <doi:10.1038/s41597-019-0147-x>) and rivers (for more details, see Cohen et al. (2018) <doi:10.1016/j.jhydrol.2018.06.066>). It can use local Digital Elevation Model (DEM) data or download DEM data via the 'ceramic' package. The package also provides functions to add elevation data to linestrings and visualize elevation profiles.

Package details

AuthorRobin Lovelace [aut, cre, cph] (ORCID: <https://orcid.org/0000-0001-5679-6536>), Rosa Félix [aut] (ORCID: <https://orcid.org/0000-0002-5642-6006>), Joey Talbot [aut] (ORCID: <https://orcid.org/0000-0002-6520-4560>), Gonçalo Matos [aut] (ORCID: <https://orcid.org/0009-0001-3489-1732>), Dan Olner [rev] (Dan reviewed the package for rOpenSci, see https://github.com/ropensci/software-review/issues/420#issuecomment-857662657), Andy Teucher [rev] (Andy reviewed the package for rOpenSci, see https://github.com/ropensci/software-review/issues/420#issuecomment-858231647)
MaintainerRobin Lovelace <rob00x@gmail.com>
LicenseGPL-3
Version1.0.1
URL https://github.com/ropensci/slopes/ https://docs.ropensci.org/slopes/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("slopes")

Try the slopes package in your browser

Any scripts or data that you put into this service are public.

slopes documentation built on June 23, 2025, 5:08 p.m.