# Small example
data(dem)
dem_aspect = aspect(dem)
plot(
dem, text_values = TRUE, breaks = "equal",
col = hcl.colors(11, "Spectral"), main = "input (elevation)"
)
plot(
dem_aspect, text_values = TRUE, breaks = "equal",
col = hcl.colors(11, "Spectral"), main = "output (aspect)"
)
# \donttest{
# Larger example
data(carmel)
carmel_aspect = aspect(carmel)
plot(
carmel, breaks = "equal",
col = hcl.colors(11, "Spectral"), main = "input (elevation)"
)
plot(
carmel_aspect, breaks = "equal",
col = hcl.colors(11, "Spectral"), main = "output (aspect)"
)
# }
Run the code above in your browser using DataLab