Visualizing Likert data II

Lecture 12

Dr. Mine Çetinkaya-Rundel

Duke University
STA 313 - Spring 2024

Warm up

Announcements

  • Complete your within team peer evaluations by 5 pm today
  • HW 3 is due Thursday at 5 pm

Setup

# load packages
library(tidyverse)
library(ggthemes)

# set theme for ggplot2
ggplot2::theme_set(ggplot2::theme_minimal(base_size = 16))

# set figure parameters for knitr
knitr::opts_chunk$set(
  fig.width = 7, # 7" width
  fig.asp = 0.618, # the golden ratio
  fig.retina = 3, # dpi multiplier for displaying HTML output on retina
  fig.align = "center", # center align figures
  dpi = 300 # higher dpi, sharper image
)

Visualizing Likert data

Continue improvements

Go to ae-08 to pick up where we left off and continue improving.

Step 1:

Step 2:

Considerations

What have you learned from the reading about these considerations?

  • Diverging charts

  • 100% charts

  • NAs vs. neutrals/neithers

Diverging bar charts

vs. 100% bar charts

Let’s make a divergent bar chart

Go to ae-08 and add a divergent bar chart.

Comparison