#Step1: Libraries for today
library(sf) # spatial objects
library(dplyr) # data wrangling
library(ggplot2) # static maps
library(classInt) # classification schemes
library(viridis) # colour palettes
library(leaflet) # interactive maps
library(patchwork) # side-by-side plots
#Step2: Treat lon/lat as planar coordinates -- S2, sf's spherical engine,
# rejects the small topology errors that real boundary files are full of
sf_use_s2(FALSE)