R: Calculate Slopes of Roads, Rivers and Trajectories

# Calculate Slopes of Roads, Rivers and Trajectories

## Documentation for package ‘slopes’ version 2.0.0

- DESCRIPTION file.
- User guides, package vignettes and other documentation.
- Package NEWS.

## Help Pages

cyclestreets_route | Cycle route data
dem_lisbon | Read the bundled Lisbon DEM as a SpatRaster
distance_z | Extract distance and elevation data from route
elevation_add | Add elevation data to routes linestrings or points
elevation_extract | Extract elevation values from coordinates
elevation_get | Get elevation data for routes
lisbon_road_network | Lisbon road network
lisbon_road_segment | Lisbon road segment
lisbon_road_segment_3d | Lisbon road segment 3D
lisbon_road_segment_xyz_mapbox | Lisbon road segment XYZ
lisbon_route | Lisbon route data
lisbon_route_3d | Lisbon route 3D
lisbon_route_xyz_mapbox | Lisbon route XYZ
magnolia_xy | Magnolia coordinates
make_breaks | Create slope breaks for color mapping
make_colz | Assign colors to slope values
make_pal | Create color palette for slope visualization
plot_dz | Plot distance-elevation profile with slope coloring
plot_slope | Plot elevation profile with slope coloring
route_to_segments | Split a route into vertex-to-vertex segments
sequential_dist | Calculate sequential distances between points
sf_mid_ext_lonlat | Extract midpoint and extent from routes in lonlat
slopes_palette | Get color palette for slopes visualization
slope_breaks | Recommended slope break thresholds (as proportions)
slope_colors | Recommended slope colours (dark green to dark red)
slope_distance | Calculate slopes using distance data
slope_distance_mean | Calculate mean slope using distance weighting
slope_distance_weighted | Calculate distance-weighted slopes
slope_matrices | Calculate slopes for multiple coordinate matrices
slope_matrix | Calculate slopes from coordinate matrix
slope_matrix_mean | Calculate mean slope from coordinate matrix
slope_matrix_to_raster | Convert slope matrix to SpatRaster
slope_matrix_weighted | Calculate weighted slopes from coordinate matrix
slope_raster | Calculate slopes using raster elevation data
slope_vector | Calculate slopes from vector data
slope_xyz | Calculate slopes from XYZ coordinate data
slope_xyz_simple | Extract XYZ coordinates from SpatRaster or matrix