Historical data on executions in the US (1801-1900) and script for scraping, wrangling, mapping, and visualizing data on US executions
Contains the following scraped data on executed criminals in the United States (N = 5455):
- name
- age
- race
- sex
- occupation
- crime
- method
- month/day/year of execution
- state
Data source: www.deathpenaltyusa.org
Corresponding blog post: https://lhehnke.github.io/notes/2018/02/08/death-penalty-us
The script covers
- scraping tables containing information on executions in the United States with rvest
- wrangling scraped data
- mapping executions by state with tmap
- visualizing the number of executions by
- sex
- race
- method of execution
using the above data on executions in the US from 1801 to 1900.
Example map:
Example plot: