Week 7: Displaying Data Visually
Visually displaying data through figures is a critical part of producing high quality science. The amount of information you can glean from a well-designed figure is impressive, and so today we will learn how to make basic figures in R.
Lecture Topics
- Working with dates
- Basic principles of effective data display
- ggplot2 vs. base plot
- Contrasting plots for common data types
Resources
Lubridate: https://lubridate.tidyverse.org/
See this resource for basic plotting: http://r4ds.had.co.nz/data-visualisation.html
ggplot2 cheat sheet: https://www.rstudio.com/wp-content/uploads/2015/03/ggplot2-cheatsheet.pdf
R base plot cheat sheet: http://publish.illinois.edu/johnrgallagher/files/2015/10/BaseGraphicsCheatsheet.pdf
Allison Horst’s stats illustrations: https://github.com/allisonhorst/stats-illustrations
Code and Data
Lecture slides
Slides available via speakerdeck