Data Viz

Lecture 5

Dr. Elijah Meyer

NC State University
ST 511 - Fall 2025

2024-09-03

Checklist

– Are you keeping up with the prepare material?

– Take advantage of TA office hours!

– Data Viz quiz (released today) due Sunday

– HW-1 due Sep 7th on Gradescope

Announcements

Policy change

– Videos are live

… unless

Announcements

What you need to do

Joining the class org

You should have already received the invite! Do this now.

Joining the class org

Questions

Announcements

HW-1

-- Gradescope is set up; Mark all pages associated with each exercise 

-- Do not select any pages of your PDF submission to be with Workflow + Formatting 

AE

-- Solutions from last week are posted

-- Will be posted (typically) by end of week 

Warm Up

Practice reading the following code as a sentence

mtcars |>
  ggplot(
    aes(
      x = mpg, y = wt) 
  ) +
  geom_point()

Goals for today

– ggplot

– More practice with R

Warm Up: Style Guide

Based on the style guide, how can the code below be improved?

iris |>
  filter(Species == "setosa")|>ggplot(aes(x = Sepal.Width,y = Sepal.Length))+ geom_point()

Warm Up: Style Guide

iris |>
  filter(Species == "setosa")|> 
  ggplot(aes(x = Sepal.Width, y = Sepal.Length)) + 
  geom_point()

Warm Up: Style Guide

iris |>
  filter(Species == "setosa")|> 
  ggplot(aes(x = Sepal.Width, 
             y = Sepal.Length)) + 
  geom_point()

Questions

ae-sep3

Recreate