Artwork by Allison Horst
Pre-class Prep
A. Install required packages
install.packages("paletteer") # a comprehensive collection of color palettes in R using a common interface
install.packages("viridis") # Colorblind-Friendly Color Maps for R
install.packages("RColorBrewer") # ColorBrewer Palettes
install.packages("tigris") # for downloading and using Census TIGER/Line shapefiles in R
B. Download data
- County-level precipitation data (Feb 2019 - Jan 2024) for the contiguous U.S, made available by NOAA National Centers for Environmental Information (NCEI) (the download buttons are located just beneath the rendered map – choose the CSV option)
- rename the data file as
county-feb19-jan24-precip.csv
and save it to your class repo at the file path:EDS-240-class-examples/week5/data/county-feb19-jan24-precip.csv
- rename the data file as
C. Download .qmd templates & review data wrangling code
Download all necessary templates (links in the table below) and save them to a
EDS-240-data-viz-examples/week5/
folder.Review the data wrangling code under the
# Setup
section of 1each template file and make note of any questions you might have. Due to time constraints, we won’t be live-coding our way through the data wrangling code in class. However, we’ll reserve some time to answer any questions before we jump into data viz .
1We will walk through the 5.3 template setup / wrangling code together in class, but it will still benefit you to review it a bit beforehand!
D. (OPTIONAL, but highly recommended) Install Google Chrome extensions
I’ll be using both of these (really wonderful and easy-to-use) tools during lecture and encourage you to install them!
- Let’s get color blind: simulates different color deficiencies in the browser
- Grayscale the Web: turn specific sites or tabs grayscale
- ColorPick Eyedropper: a browser-based color chooser tool (I recommended that you install this for week 2 discussion, so you may already have it!)
Lecture Materials
Lecture slides | Code-along template | Code-along key |
---|---|---|
Lecture 5.1: good data viz | NA | NA |
Lecture 5.2: colors | 5.2 template | 5.2 key |
Lecture 5.3: choropleth | 5.3 template | 5.3 key |
Pre-discussion Prep
Coming soon!
Discussion Materials
Coming soon!
Assignment Reminders
Assignment Type | Assignment Title | Date Assigned | Date Due |
---|---|---|---|
EOC | EOC (week 5) | Mon 02/03/2025 | Mon 02/03/2025, 11:55pm PT |
SR | Mid-course reflection (SR #2) | Mon 02/03/2025 | Sat 02/08/2025, 11:59pm PT |