November 2018
Beginner to intermediate
354 pages
6h 59m
English
The slope of a DEM can be calculated in R using terrain(), where we need to mention whether we need slope in degrees or percentages by providing values to the unit argument:
slope = terrain(dem, opt = "slope", unit = "degrees")plot(slope)
This gives us the following output of a slope between 0 and 60:

Read now
Unlock full access