The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

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.

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 <rob00x at gmail.com>
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:

Reference manual: slopes.pdf
Vignettes: Benchmarking slopes calculation (source, R code)
An introduction to slopes (source, R code)
Example: gradients of a road network for a given city (source, R code)
Get started (source, R code)
Verification of slopes (source, R code)

Downloads:

Package source: slopes_1.0.1.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): slopes_1.0.1.tgz, r-oldrel (arm64): slopes_1.0.1.tgz, r-release (x86_64): slopes_1.0.1.tgz, r-oldrel (x86_64): slopes_1.0.1.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=slopes to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.