Package: slopes 1.0.1.9000

Robin Lovelace

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.

Authors:Robin Lovelace [aut, cre, cph], Rosa Félix [aut], Joey Talbot [aut], Gonçalo Matos [aut], Dan Olner [rev], Andy Teucher [rev]

slopes_1.0.1.9000.tar.gz
slopes_1.0.1.9000.zip(r-4.6)slopes_1.0.1.9000.zip(r-4.5)slopes_1.0.1.9000.zip(r-4.4)
slopes_1.0.1.9000.tgz(r-4.5-any)slopes_1.0.1.9000.tgz(r-4.4-any)
slopes_1.0.1.9000.tar.gz(r-4.6-any)slopes_1.0.1.9000.tar.gz(r-4.5-any)
slopes_1.0.1.9000.tgz(r-4.5-emscripten)
slopes.pdf |slopes.html
slopes/json (API)
NEWS

# Install 'slopes' in R:
install.packages('slopes', repos = c('https://packages.ropensci.org', 'https://cloud.r-project.org'))

Reviews:rOpenSci Software Review #420

Bug tracker:https://github.com/ropensci/slopes/issues

Pkgdown site:https://docs.ropensci.org

Datasets:

On CRAN:

Conda:

8.36 score 71 stars 43 scripts 191 downloads 24 exports 20 dependencies

Last updated from:8faae49839 (on master). Checks:10 OK. Indexed: yes.

TargetResultTotal timeArtifact
linux-devel-x86_64OK183
pkgdown docsOK231
source / vignettesOK230
linux-release-x86_64OK179
macos-release-arm64OK105
macos-oldrel-arm64OK111
windows-develOK136
windows-releaseOK158
windows-oldrelOK146
wasm-releaseOK154

Exports:elevation_addelevation_extractelevation_getplot_dzplot_slopesequential_distslope_distanceslope_distance_meanslope_distance_weightedslope_matrixslope_matrix_meanslope_matrix_weightedslope_rasterslope_vectorslope_xyzz_cumulative_differencez_directionz_elevation_change_start_endz_endz_maxz_meanz_minz_startz_value

Dependencies:classclassIntcolorspaceDBIe1071geodistKernSmoothlatticemagrittrMASSpbapplyproxyrasterRcpps2sfspterraunitswk

An introduction to slopes

Rendered fromintro-to-slopes.Rmdusingknitr::rmarkdownon Aug 22 2025.

Last update: 2025-05-29
Started: 2021-08-24

Benchmarking slopes calculation

Rendered frombenchmark.Rmdusingknitr::rmarkdownon Aug 22 2025.

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

Example: gradients of a road network for a given city

Rendered fromroadnetworkcycling.Rmdusingknitr::rmarkdownon Aug 22 2025.

Last update: 2025-05-29
Started: 2021-06-21

Get started

Rendered fromslopes.Rmdusingknitr::rmarkdownon Aug 22 2025.

Last update: 2025-05-29
Started: 2020-05-05

Verification of slopes

Rendered fromverification.Rmdusingknitr::rmarkdownon Aug 22 2025.

Last update: 2025-05-29
Started: 2020-05-06