Juneteenth 2021: Using ggplot2 and R to create a map showing the history of lynchings (CC117)
Channel: Riffomonas Project
Date: 2021-06-18

This episode generates a map with the R ggplot2 package showing the number lynchings in each county between 1877 and 1950 as a heatmap. Juneteenth is the anniversary of the 1865 emmancipation of slaves in Texas. To commemorate this important date, I'm presenting a series of episodes creating data visualizations using data from the CSDE Lynching Database. 

I use RStudio and the #geom_polygon function from the #ggplot2 package as well as numerous dplyr functions including #anti_join and even #right_join. The accompanying blog post can be found at https://www.riffomonas.org/code_club/2021-06-18-juneteenth-mapped

The CSDE Lynching database can be found at http://lynching.csde.washington.edu/#/home

Do you have a figure that you would like to receive a critique or help improving? Let me know and I'd be happy to arrange a guest appearance!

If you're interested in taking an upcoming 3 day R workshop, email me at riffomonas@gmail.com!

R: https://r-project.org
RStudio: https://rstudio.com
Raw data: https://github.com/riffomonas/raw_data/releases/latest
Workshops: https://www.mothur.org/wiki/workshops

You can also find complete tutorials for learning R with the tidyverse using...
Microbial ecology data: https://www.riffomonas.org/minimalR/
General data: https://www.riffomonas.org/generalR/

0:00 Introduction
2:26 Counting number of lynchings by state and county
5:37 Fixing county level names with anti_join
11:40 Creating a county level map with number of lynchings
16:04 Improving appearance of map
24:41 Critique of map