Visualize · Week 11

Visualization: Categories + Relationships

Finish comparing categorical distributions, then introduce scatterplots to describe relationships between two numeric variables.

Nov 2–6Lecture 8 through slide 5 · Classworks 12–13
ImportantStart here this week

Begin with Lecture 7, slide 30: Distribution of a categorical variable, and work on Classworks 12 and 13. Then begin Lecture 8: Data Visualization II, covering through slide 5: Direction, variation, and unusual points. Continue relationships and time trends in Week 12, with Classworks 14–16.

Focus

  • Categorical counts and proportions
  • Relationships between numeric variables
  • Direction, variation, and unusual points

Prepare

  • Resume Lecture 7 at slide 30
  • Open Classworks 12 and 13
  • Begin Lecture 8 through slide 5

Practice

  • Compare categories within and across groups
  • Match two numeric variables to scatterplot axes
  • Describe patterns in scatterplots

Learning targets

  • Use geom_bar() and geom_col() to display categorical counts.
  • Compare categorical distributions across groups with stacked, side-by-side, and proportional bars.
  • Describe direction, shape, and unusual observations in a scatterplot.
  • Identify the two numeric variables represented by a scatterplot’s axes.
  • Explain how a scatterplot’s pattern answers a question about the data.

Lecture slides

TipLecture slide shortcuts

Click inside the slide preview, then use:

  • the visible ←/→ controls to page through the slides;
  • your mouse wheel or trackpad to keep scrolling the weekly page;
  • M to open the menu;
  • F to enter fullscreen;
  • E to enter or exit PDF export mode;
  • Ctrl + Shift + F to search within the slides;
  • Esc to exit the menu or fullscreen; and
  • T to switch between dark and light mode.
Lecture 7 · Data Visualization I · start at slide 30: Distribution of a categorical variableView slides in new tab
Lecture 8 · Data Visualization II · through slide 5: Direction, variation, and unusual pointsView slides in new tab

This week’s materials

Back to top