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_1.0.1.tar.gz
slopes_1.0.1.zip(r-4.5)slopes_1.0.1.zip(r-4.4)slopes_1.0.1.zip(r-4.3)
slopes_1.0.1.tgz(r-4.4-any)slopes_1.0.1.tgz(r-4.3-any)
slopes_1.0.1.tar.gz(r-4.5-noble)slopes_1.0.1.tar.gz(r-4.4-noble)
slopes_1.0.1.tgz(r-4.4-emscripten)slopes_1.0.1.tgz(r-4.3-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'))

Peer review:

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

Datasets:

On CRAN:

23 exports 70 stars 6.90 score 20 dependencies 38 scripts

Last updated 4 days agofrom:7f9ee5cd6d (on master). Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 07 2024
R-4.5-winOKOct 07 2024
R-4.5-linuxOKOct 07 2024
R-4.4-winOKOct 07 2024
R-4.4-macOKOct 07 2024
R-4.3-winOKOct 07 2024
R-4.3-macOKOct 07 2024

Exports:elevation_addelevation_extractelevation_getplot_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 Oct 07 2024.

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

Benchmarking slopes calculation

Rendered frombenchmark.Rmdusingknitr::rmarkdownon Oct 07 2024.

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

Example: gradients of a road network for a given city

Rendered fromroadnetworkcycling.Rmdusingknitr::rmarkdownon Oct 07 2024.

Last update: 2024-10-07
Started: 2021-06-21

Get started

Rendered fromslopes.Rmdusingknitr::rmarkdownon Oct 07 2024.

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

Verification of slopes

Rendered fromverification.Rmdusingknitr::rmarkdownon Oct 07 2024.

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