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.">

slopes: Calculate Slopes of Roads, Rivers and Trajectories (original) (raw)

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.

Version: 1.0.1
Depends: R (≥ 2.10)
Imports: sf, raster, methods, pbapply, geodist, colorspace
Suggests: terra, knitr, rmarkdown, ceramic, bookdown, covr, testthat, osmextract, stplanr, dplyr, tmap, leaflet, bench, rlang
Published: 2025-06-23
DOI: 10.32614/CRAN.package.slopes
Author: Robin Lovelace ORCID iD [aut, cre, cph], Rosa Félix ORCID iD [aut], Joey Talbot ORCID iD [aut], Gonçalo Matos ORCID iD [aut], 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)
Maintainer: Robin Lovelace
BugReports: https://github.com/ropensci/slopes/issues
License: GPL-3
URL: https://github.com/ropensci/slopes/,https://docs.ropensci.org/slopes/
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: slopes results

Documentation:

Downloads:

Linking:

Please use the canonical formhttps://CRAN.R-project.org/package=slopesto link to this page.