Day 8
Outline:
- Principles for Data Analysis
 - Functional Programming
 - COVID OSHA Example
 - Student Choice
 - Age Standardization
 - Baby Boom Visualization
 - R4DS Giveaway
 
Lecture 1: Principles for data analysis
 link to view slides fullscreen  
  link to PDF slides 
Lecture 2: Functional Programming
COVID OSHA Project Example
Link to Project: https://github.com/ctesta01/covid_osha
Student Choice
Kieran Healy’s Baby Boom Data Visualization Poster
Together we took a look at this poster from Kieran Healy and the code from the repository.
The example was instructive on a few points:
- We thought it was neat how Kieran used the legend to create a title.
 - We saw how he used 
cowplot::plot_gridand/or thepatchworkpackage to construct the graphic with multiple panels. - Seeing how 
png()andpdf()can be used, similar toggsave(), to save plots was useful — especially for non-ggplot2 visualizations. - We had to do a little bit of debugging, figuring out that we needed to use 
scale_x_yearmonth()instead ofscale_x_date()and we figured that out by 1) reading the error we got in R, and 2) checking what the class/type of the column mapped onto thexaesthetic was. 
Last Year’s Video Recording