Outline:
- Principles for Data Analysis
- Functional Programming
- COVID OSHA Example
- Student Choice
- Age Standardization
- Baby Boom Visualization
- R4DS Giveaway
link to view slides fullscreen
link to PDF slides
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_grid
and/or the patchwork
package to construct the graphic with multiple panels.
- Seeing how
png()
and pdf()
can be used, similar to ggsave()
, 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 of scale_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 the x
aesthetic was.