Module 6: Data Visualization

Jacob Jameson
Summer 2021

Data Visualization

Objectives

  1. Be able to plot in ggplot
  2. Know what types of figures you want
  3. Use plots to gain information

Key points

  1. ggplot syntax
  2. aesthetics mapping
  3. geometry
  4. labels

What is ggplot?

  • ggplot is an implementation of the Grammar of Graphics by Leland Wilkinson for data visualization

    • Grammar of graphics abstraction of graphics ideas “Shorten the distance from mind to page”
    • ggplot is a data visualization package, that is part of the tidyverse suite of packages
  • To use ggplot functions, first load tidyverse

library(tidyverse)

Basic Components of ggplot (Layers)