R and GIS

Learn the basics of geographic information systems (GIS) and spatial data in R.

Requirements

Downloading the data from here.

download.file(
    url = "https://kamapu.gitlab.io/coachingR/Topics/GIS/gis_data.zip",
    destfile = "gis_data.zip", method = "curl")
unzip("gis_data.zip", overwrite = TRUE)
unlink("gis_data.zip")

Exercise

Following landscape elements are recognized in the raster dem_big.asc.

  • Oberrheingraben
  • Neuwieder Becken
  • Oberen Mittelrhein
  • Unteren Mittelrhein
  • Westerwald
  • Eifel
  • Hunsrück
  • Taunus

Plot the DEM and add labels showing their respective positions.