Skip to content

Instantly share code, notes, and snippets.

View jlacko's full-sized avatar
🦜
wrrritin' pirrrate code, arrr!

Jindra Lacko jlacko

🦜
wrrritin' pirrrate code, arrr!
View GitHub Profile
@jlacko
jlacko / map_projections.R
Last active March 23, 2021 08:01 — forked from DavZim/map_projections.R
Creates a gif of the world in different map projections
library(tidyverse)
library(sf)
library(giscoR)
library(gganimate)
# world, with Greenland and Congo (roughly equal in area) in red
world <- gisco_get_countries(resolution = "20") %>%
mutate(color = ifelse(CNTR_ID %in% c('GL', 'CD'), 'red', 'black')) %>%
group_by(color) %>%
summarise() %>%