2) Grammar of Graphics I

πŸ“‹ About

In this unit you’ll get introduced to the "ggplot2" system for making graphics.


🎯 Objectives

At the end of this unit you will be able to:

  • Produce simple exploratory graphics with functions from "ggplot2".

  • Describe the notion of β€œlayers” and how to use them for making a graphic with "ggplot2".

  • Explain the difference between mappings and settings.

  • Describe the purpose of the aesthetic mapping function aes().


🌠 Slides

A Grammar of Graphics (google slides)


πŸ’» Code

Basic graphics with "ggplot2"

  • qmd notebook file
  • html file


πŸ“– Assignment

Reading: The Age That Women Have Babies: How a Gap Divides America by Quoctrung Bui and Claire Cain Miller (Aug-4, 2018, New York Times)

https://www.nytimes.com/interactive/2018/08/04/upshot/up-birth-age-gap.html