November 2018
Beginner to intermediate
354 pages
6h 59m
English
Hillshade illuminates a surface by considering a hypothetical light source and its angle. In R, we need to calculate the slope and aspect before calculating the hillshade. We also have to provide the angle and direction of the sun inside the hillshade() function, as follows:
hill_dem = hillShade(slope, aspect, 40, 270)plot(hill_dem)
Now, we'll get the following hillshade output:

Read now
Unlock full access