Visualizations and the grammar of graphics

Overview

  • Identify the importance of graphics in communicating information
  • Define the layered grammar of graphics
  • Demonstrate how to use layered grammar of graphics
  • Practice generating layered graphics using ggplot2

Before class

  • Required: read chapters 1 and 2 from R for Data Science. You need to read this chapter and complete some of the exercises before coming to class. Exercise solutions can be found here.
  • Optional: read Hadley Wickham A Layered Grammar of Graphics – the “pre-print” version of the article can be downloaded for free. This article is optional, but I strongly encourage you to skim through it to familiarize with the theory and language of the grammar of graphics; read especially section 3 “Components of the Layered Grammar” and section 4 “A Hierarchy of Defaults.”

Additional resources

Graphical design

ggplot2

Cheatsheets

What you need to do after class

  • Complete Assigment 1 and submit the link to your repo on Canvas so we can grade it
  • Review today’s lecture and prepare for next class