L3: Dplyr and Basic Visualization

Bogdan G. Popescu

John Cabot University

Background

Dplyr and Basic Visualization

Today, we’ll learn how to:

  • Load and inspect real-world datasets
  • Clean and prepare data for analysis
  • Use dplyr to group and summarize values
  • Join datasets using a common key
  • Create and customize scatterplots using ggplot2

Opening a File

Download the following datasets from Dropbox:

Opening a File

Now put them in your working directory

Place the files in a folder named “data” inside your “week3” directory

Creating a New Quarto Document

We will now create a new quarto document corresponding to week 3

The following are screenshots from week 2.

Simply replace “2” with “3”

Creating a New Quarto Document

Creating a New Quarto Document

Creating a New Quarto Document

Creating a New Quarto Document

Creating a New Quarto Document

Creating a New Quarto Document

Creating a New Quarto Document

Creating a New Quarto Document