Skip to content

Instantly share code, notes, and snippets.

@leeolney3
leeolney3 / 30dmc_07.R
Last active November 7, 2022 21:11
2022 #30DayMapChallenge
# Libraries
library(tidyverse)
library(sf)
library(ggtext)
library(showtext)
showtext_opts(dpi = 300)
showtext_auto(enable = TRUE)
# Font
font_add_google("Fira Sans")
@leeolney3
leeolney3 / 30dmc_06.R
Last active November 7, 2022 21:10
2022 #30DayMapChallenge
# Libraries
library(tidyverse)
library(showtext)
showtext_opts(dpi = 300)
showtext_auto(enable = TRUE)
# Font
font_add_google("JetBrains Mono")
f1 = "JetBrains Mono"
@leeolney3
leeolney3 / 30dmc_05.R
Last active November 7, 2022 21:10
2022 #30DayMapChallenge
# 30DayMapChallenge 2022 Day 5 Ukraine
# Annual precipitation (in mm)
# Libraries
library(tidyverse)
library(sf)
library(raster)
library(ggtext)
library(showtext)
showtext_opts(dpi = 300)
@leeolney3
leeolney3 / 30dmc_04.R
Last active November 7, 2022 21:10
2022 #30DayMapChallenge
# 30DayMapChallenge 2022 Day 4 Green
# Parks in Arlington County, VA
# Data source: https://gisdata-arlgis.opendata.arcgis.com/datasets/ArlGIS::park-polygons/explore?location=38.882168%2C-77.106700%2C13.00
# Libraries
library(tidyverse)
library(sf)
library(ggtext)
library(showtext)
showtext_opts(dpi = 300)
@leeolney3
leeolney3 / 30dmc_03.R
Last active November 7, 2022 21:10
2022 #30DayMapChallenge
# 30DayMapChallenge 2022 Day 3 Polygons
# Border changes in Africa 1886-2000
# Data source: https://icr.ethz.ch/data/cshapes/
# Libraries
library(tidyverse)
library(sf)
library(patchwork)
library(showtext)
showtext_opts(dpi = 300)
@leeolney3
leeolney3 / 30dmc_02.R
Last active November 7, 2022 21:09
2022 #30DayMapChallenge
# 30DayMapChallenge 2022 Day 2 Lines
# City of Chicago bus lines (as of October 7, 2022)
# Data source: Chicago Transit Authority, https://data.cityofchicago.org/Transportation/CTA-Bus-Routes-Shapefile/d5bx-dr8z
# Libraries
library(tidyverse)
library(sf)
library(ggtext)
library(showtext)
showtext_opts(dpi = 300)
@leeolney3
leeolney3 / 30dmc_01.R
Last active November 7, 2022 21:09
2022 #30DayMapChallenge
# 30DayMapChallenge 2022
# Day 1 Points
# Data: Mapping Museums, https://museweb.dcs.bbk.ac.uk/data
# Libraries
library(tidyverse)
library(ggtext)
library(sf)
library(rnaturalearth)
library(showtext)
@leeolney3
leeolney3 / 24_theme-day_financial-times.R
Last active October 23, 2022 10:45
#30DayChartChallenge
# 30DayChartChallenge 24 theme day: Financial Times
# Spider news
# Source: Stefano Mammola et al. by way of Data is Plural
# Dataset available at: https://figshare.com/articles/dataset/Global_Spider_News_Database/14822301
library(tidyverse)
library(ggtext)
library(showtext)
showtext_opts(dpi = 300)
showtext_auto(enable = TRUE)
@leeolney3
leeolney3 / 23_tiles.R
Last active April 25, 2022 06:18
#30DayChartChallenge
# 30DayChartChallenge (timeseries) 23. tiles
# Food price inflation in the Caribbean
# Data source: FAO, available at: https://www.fao.org/faostat/en/#data/CP
# Libraries
library(tidyverse)
library(ggtext)
library(showtext)
showtext_opts(dpi = 300)
showtext_auto(enable = TRUE)
@leeolney3
leeolney3 / 21_down-upwards.R
Last active April 21, 2022 09:46
#30DayChartChallenge
# 30DayChartChallenge 21 down/upwards
# Data source: U.S. Department of Energy, by way of Data is Plural, available at: https://afdc.energy.gov/data/10581
# Libraries
library(tidyverse)
library(showtext)
showtext_opts(dpi = 300)
showtext_auto(enable = TRUE)
# Font