top of page

Lesson 5: Graphing #2

In this lecture, students learn how to create scatter plots using ggplot(__) and the geom_point(__) function to visualize relationships between two numerical variables. Using NBA data, the instructor plots total points against three-pointers made and explains how to interpret patterns in the scatter plot. The video then introduces the cor(__) function to calculate correlation coefficients and shows how to assess the strength and direction of relationships between variables. Examples include weak-to-moderate correlation between three-pointers and points, and a strong correlation between three-point attempts and makes.

bottom of page