Skip to content

Instantly share code, notes, and snippets.

@andrewheiss
Created August 6, 2020 14:22
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save andrewheiss/8e514355d75aac1a7d6b91a67b896f20 to your computer and use it in GitHub Desktop.
Save andrewheiss/8e514355d75aac1a7d6b91a67b896f20 to your computer and use it in GitHub Desktop.
library(tidyverse)
library(sf)
# https://github.com/jvangeld/ME-GIS
coastline <- read_sf("ME-GIS-master/Coastline2.shp")
contours <- read_sf("ME-GIS-master/Contours_18.shp")
rivers <- read_sf("ME-GIS-master/Rivers.shp")
lakes <- read_sf("ME-GIS-master/Lakes.shp")
forests <- read_sf("ME-GIS-master/Forests.shp")
mountains <- read_sf("ME-GIS-master/Mountains_Anno.shp")
placenames <- read_sf("ME-GIS-master/Combined_Placenames.shp")
places <- placenames %>%
filter(NAME %in% c("Hobbiton", "Rivendell", "Edoras", "Minas Tirith"))
ggplot() +
geom_sf(data = contours, size = 0.15, color = "grey90") +
geom_sf(data = coastline, size = 0.25, color = "grey50") +
geom_sf(data = rivers, size = 0.2, color = "#0776e0", alpha = 0.5) +
geom_sf(data = lakes, size = 0.2, color = "#0776e0", fill = "#0776e0") +
geom_sf(data = forests, size = 0, fill = "#035711", alpha = 0.5) +
geom_sf(data = mountains, size = 0.25) +
geom_sf(data = places) +
geom_sf_label(data = places, aes(label = NAME), nudge_y = 80000) +
theme_void() +
theme(plot.background = element_rect(fill = "#fffce3"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment