Intro to R
  • Home
  • Syllabus
  • Lectures
  • Homework
  • Software Setup

On this page

  • Info and Materials
  • Learning Objectives
  • Before Class
  • Readings

Lecture 5: Data Analysis and Graphs

Published

July 10, 2025

Info and Materials

  • Date: July 10, 2025
  • Topics: Data Analysis and Graphs
  • Slides: View Slides
  • Code: usethis::use_course("csp-materials/eda")

Learning Objectives

  • Identify best graph types (e.g., bar chart vs. histogram) based on variable types (e.g., categorical vs. numeric)
  • Interpret what a graph shows about the data
  • Practice using ggplot2 and dplyr

Before Class

  • Review the Lecture 4 materials to get ready for today’s in-class quiz
  • Bring your laptop to every class

Readings

Skim the readings before or after class to get the big picture and prep for quizzes and assignments:

  • “Chapter 10 Exploratory Data Analysis” from “R for Data Science” 2nd Edition
  • Cheat sheets and documentation for ggplot2 and dplyr (from previous lectures)
    • ggplot2 Cheat Sheet
    • ggplot2 Official Documentation
    • dplyr Cheat Sheet
    • dplyr Official Documentation