Week 4: Data Visualization with ggplot2
Sep 23, 2026 · 2:00–4:40 PM · Bobst LL138
Before class
- Read: R02Pro Ch 6–7
- Review the newly released weekly exercise and prepare questions.
- Complete Weekly Exercise 3 (due tonight at 11:59 PM).
- 🔍 Proofreading corner: spot a typo or unclear passage in Ch 6–7? Submit a PR or issue for extra credit (see syllabus).
Topics
- The Grammar of Graphics: data, aesthetics, and geometric layers
- Core geoms: geom_point(), geom_line(), geom_histogram(), geom_boxplot(), geom_col()
- Aesthetic mappings: color, fill, shape, size, and alpha
- Small multiples: facet_wrap() and facet_grid()
- Customizing plots: titles, labels, scales, color palettes, and themes
Materials
- 📊 Lecture Slides: Interactive Presentation (HTML)
- 📝 In-Class Exercise: View Worksheet (HTML) · Download Starter Code (
.qmd) · or runget_worksheet(4)in your in-class repo - 💻 Weekly Exercise 4: Accept Assignment on Classroom 50 · How to do it, start to finish
Due
- Weekly Exercise 3 (due tonight at 11:59 PM)
- In-class exercise 4 (pushed to GitHub by end of class)