Skip to content

Instantly share code, notes, and snippets.

@leeolney3
leeolney3 / 11_circular_2.R
Created April 20, 2022 11:03
#30DayChartChallenge
# 30DayChartChallenge 11 Circular (Attempt 2)
# Data source: Gas Infrastructure Europe, by way of Data Is Plural, available at https://agsi.gie.eu/#/graphs/BE
library(tidyverse)
library(lubridate)
library(showtext)
showtext_opts(dpi = 300)
showtext_auto(enable = TRUE)
font_add_google("Roboto")
@leeolney3
leeolney3 / 19_global-change.R
Created April 19, 2022 09:20
#30DayChartChallenge
# 30DayChartChallenge (Timeseries) 19 global change
# WHO outbreak alerts by year
# Source: Colin J. Carlson et al. Github by way of Data is Plural
# Link to data: https://github.com/cghss/dons, https://www.data-is-plural.com/archive/2022-03-30-edition/
# Plot inspired by: The New York Times, by way of DataWrapper Data Vis Dispatch (https://blog.datawrapper.de/wp-content/uploads/2022/03/data-viz-dispatch-visualization44.png)
library(tidyverse)
library(magrittr)
library(lubridate)
library(showtext)
@leeolney3
leeolney3 / 2022_15.R
Last active April 12, 2022 10:32
#TidyTuesday
# 2022-04-12
# TidyTuesday week 15 Indoor Air Pollution
# Data from ourworldindata.org/indoor-air-pollution
library(tidyverse)
library(ggtext)
library(showtext)
showtext_opts(dpi = 300)
showtext_auto(enable = TRUE)
@leeolney3
leeolney3 / 12_theme.R
Created April 12, 2022 08:45
#30DayChartChallenge
# 30DayChartChallenge 12 theme day: The Economist
# Teenagers on TV
# Data: Amber Thomas by way of Data is Plural, available at https://data.world/amberthomas/age-of-characters-and-actors-in-teen-tv-shows
library(tidyverse)
library(magrittr)
library(lubridate)
library(ggtext)
library(showtext)
showtext_opts(dpi = 300)
@leeolney3
leeolney3 / 11_circular
Created April 11, 2022 09:02
#30DayChartChallenge
# 30DayChartChallenge 11 circular
# Alternative fuel transit buses by fuel type
# Data source: AFDC, by way of Data Is Plural (https://afdc.energy.gov/data/categories/vehicles--2)
# Inspired by Cédric Scherer @CedScherer (https://www.behance.net/gallery/100683383/Travelling-to-Outer-Space) and Blake Robert Mills @BlakeRobMills (https://twitter.com/BlakeRobMills/status/1453207974646849537)
library(tidyverse)
library(ggtext)
library(showtext)
showtext_opts(dpi = 300)
showtext_auto(enable = TRUE)
@leeolney3
leeolney3 / 10_experimental
Created April 10, 2022 05:55
#30DayChartChallenge
# 30DayChartChallenge 10 Experimental
# Belgium gas storage from from January 1, 2011 to March 31, 2022
# Data source: Gas Infrastructure Europe, by way of Data Is Plural
# Dataset link: https://agsi.gie.eu/#/graphs/BE
# Libraries
library(tidyverse)
library(spiralize)
library(ComplexHeatmap)
library(showtext)
@leeolney3
leeolney3 / 07_physical.R
Last active April 11, 2022 09:17
# 30DayChartChallenge
# 30DayChartChallenge 07 physical
# Self-Reported Physical Inactivity Among US Adults
# Data source: CDC available at: https://www.cdc.gov/physicalactivity/data/inactivity-prevalence-maps/index.html
# Libraries
library(tidyverse)
library(ggtext)
library(ggbeeswarm)
library(usmap)
library(showtext)
@leeolney3
leeolney3 / 06_OWID
Last active April 7, 2022 22:03
#30DayChartChallenge
#30DayChartChallenge 06 data day OWID
# South America Cereal Yield (t/ha)
# Data source: OWID and FAO, available at https://ourworldindata.org/africa-yields-problem
library(tidyverse)
library(ggtext)
library(countrycode)
library(showtext)
showtext_opts(dpi = 300)
showtext_auto(enable = TRUE)
@leeolney3
leeolney3 / 05_slope.R
Created April 5, 2022 06:18
#30DayChartChallenge
# 30DayChartChallenge 05 slope
# Malaria tests in sub-Saharan Africa, November 2019 to March 2021
# Data source: World Health Organization, available at https://apps.who.int/iris/rest/bitstreams/1398397/retrieveiris/rest/bitstreams/1398397/retrieve
# Libraries
library(tidyverse)
library(ggrepel)
library(ggtext)
library(showtext)
showtext_opts(dpi = 300)
@leeolney3
leeolney3 / 04_flora
Last active April 5, 2022 05:57
#30DayChartChallenge
# 30DayChartChallenge 04 flora
# Count of Midwest native plant species by environment
# Data source: grownative.org (https://grownative.org/native-plant-database/)
# Petal chart method: Jake Kaupp @jakekaupp (https://twitter.com/jakekaupp/status/1380214121711435776/photo/1)
# Libraries
library(tidyverse)
library(ggforce)
library(MetBrewer)
library(cowplot)