Artwork by Allison Horst
Pre-class Prep
Before coming to class, you’ll need to install some packages, download data, and request a US Census Bureau API key. For step-by-step instructions, unfold the following note (collapsed to save space):
Lecture Materials
Week 3 instruction is broken down into three lessons:
Choosing graphic forms
Visualizing distributions
Visualizing evolution
Today’s lectures are inspired by and draw largely on materials created by a number of other educators, including Albert Cairo and his book The Truthful Art, Meghan Hall and her course, CMU 36-315: Statistical Graphics & Visualization, as well as information curated by Yan Holtz & Conor Healy as part of their From Data to Viz project.
Discussion Materials
Pre-discussion Prep
Before coming to section, please be sure to:
- Install the following packages:
install.packages("geofacet") # facet data for different geographical regions using panels arranged in shapes that mimic geographic topology
- (Optional) Install the ColorPick Eyedropper Google Chrome extension, which makes it easy to select color values from webpages.
Background
The U.S. Drought Monitor (USDM) is a collection of measures that allows experts to assess droughts in the United States. It is produced through a partnership between the National Drought Mitigation Center at the University of Nebraska-Lincoln, the United States Department of Agriculture and the National Oceanic and Atmospheric Administration. You can download and explore comprehensive statistics through their data portal.
The TidyTuesday community wrangled and visualized USDM data back in 2021 (2021-07-20, week 30), so we’ll use the {tidytuesdayR}
package to import some minimally-tidied data (TidyTuesday always provides the cleaning script that the organizers used to pre-process any of the data provided – these data comprise three separate data sets, which were converted from wide to long format, joined together, and had some columns renamed).
Over the course of the next two discussion sections (week 3 & week 4), you’ll be recreating the following data visualization produced by U.S. Drought Monitor, which you can find on the Droughts in California Wikipedia page:
This week, we’ll focus on the data layer, geometric layer, and scales. Next week, we’ll work on tweaking the theme (all non-data elements) to get it to look just like the U.S. Drought Monitor’s version.
Solution
You’ll get the most out of discussion section if you physically type out the code yourself (rather than copying / pasting)!
Assignment Reminders
Assignment Type | Assignment Title | Date Assigned | Date Due |
---|---|---|---|
EOC | EOC (week 3) | Mon 01/22/2024 | Mon 01/22/2024, 11:55pm PT |
HW | Homework Assignment #2 | Mon 01/22/2024 | Sat 02/03/2024, 11:59pm PT |