
slopeAspect
.
A hill shade layer is often used as a backdrop on top of which another, semi-transparant, layer is drawn.hillShade(slope, aspect, angle=45, direction=0, filename='', ...)
slopeAspect
dem <- getData('alt', country='CHE')
slas <- slopeAspect(dem)
hill <- hillShade(slas[[1]], slas[[2]], 40, 270)
plot(hill, col=grey(0:100/100), legend=FALSE, main='Switzerland')
plot(dem, col=rainbow(25, alpha=0.35), add=TRUE)
Run the code above in your browser using DataLab