[This article was first published on theBioBucket*, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
alt <- getData('alt', country = "AT") gadm <- getData('GADM', country = "AT", level = 2) gadm_sub <- gadm[sample(1:length(gadm), 5), ]
plot(alt) plot(gadm_sub, add=T)
asp <- terrain(alt, opt = "aspect", unit = "degrees", df = F) slo <- terrain(alt, opt = "slope", unit = "degrees", df = F)