02. Making Some Graphs

Content for Wednesday, January 22, 2025

Summary

The elements of making graphs. How ggplot works; what sort of data it expects; how to think about what you’re doing.

Readings

  • Hadley Wickham, Garrett Grolemund, and Mine Çetinkaya-Rundel R for Data Science: Import, Tidy, Transform, Visualize, and Model Data, Second. (Sebastopol, CA: O’Reilly Media, 2023), https://r4ds.hadley.nz., Chapters 1 and 2.

Note: This reading is fully available online at the book’s website. Also, while it’s listed here as a “reading” I strongly recommend you work through the examples in the text as you read, typing them out as code chunks in a Quarto file and rendering them to see what happens.

  • Kieran Healy Data Visualization: A Practical Introduction (Princeton: Princeton University Press, 2019), http://socviz.co/., Chapters 1, 2, and 3.

This is also fully available online, though the print version has some errors corrected.

Slides