1.3 — Data Visualization — Class Content
Overview
Today we start the fun stuff - data visualization. We will cover how to build plots with the package ggplot2
(part of the tidyverse
): I will lecture for the first half (again, it will be a lot of information that you can refer back to as needed over the semester) and you will practice making plots.
Readings
- Ch.3 in Wickham & Grolemund, http://r4ds.had.co.nz/introduction.html
Recommended/Resources on ggplot2
- R Studio’s ggplot2 Cheat Sheet
ggplot2
’s website reference section- Hadley Wickham’sR for Data Science book chapter on ggplot2
- STHDA’s be awesome in ggplot2
- r-statistic’s top 50 ggplot2 visualizations
Recommended/Resources on Data Visualization
- Kieran Healy’s Data Visualization: A Practical Guide
- Claus Wilke’s Fundamentals of Data Visualization
- PolicyViz Better Presentations
- Karl Broman’s How to Display Data Badly
- I Want Hue
R Practice
Answers from last class’ practice problems on base R are posted on that page.
Today you will be working on R practice problems on data visualization. Answers will be posted later on that page.
Slides
Below, you can find the slides in two formats. Clicking the image will bring you to the html version of the slides in a new tab. The lower button will allow you to download a PDF version of the slides.
I suggest printing the slides beforehand and using them to take additional notes in class (not everything is in the slides)!