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://ropensci.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

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

Datasets:

On CRAN:

23 exports 68 stars 3.47 score 20 dependencies

Last updated 2 months agofrom:c45cf51b5ff44821bc188c6fdb55f04c7c82cd26 (via master)

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 Jun 17 2024.

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

Benchmarking slopes calculation

Rendered frombenchmark.Rmdusingknitr::rmarkdownon Jun 17 2024.

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

Example: gradients of a road network for a given city

Rendered fromroadnetworkcycling.Rmdusingknitr::rmarkdownon Jun 17 2024.

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

Get started

Rendered fromslopes.Rmdusingknitr::rmarkdownon Jun 17 2024.

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

Verification of slopes

Rendered fromverification.Rmdusingknitr::rmarkdownon Jun 17 2024.

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