Data In The Wild
  1. Module 2
  2. Overview
  • Home
  • Contact Us
  • For Instructors

  • Module 1
    • Overview
    • 1.1: Introduction to R and RStudio
    • 1.2: Intro to Coding in R
    • 1.3: Introduction to the tidyverse
    • Assignment 2
    • Assignment 3
  • Module 2
    • Overview
    • 2.1: Good Food Gone Bad
    • 2.2: Plotting with ggplot2
    • 2.3: Data Visualization
    • 2.4: Exploring geom Functions
    • 2.5: Module 2 Wrap-Up
    • Assignment 1
    • Assignment 2
    • Assignment 3
  • Module 3
    • Overview
    • 3.1: Leopard Seals
    • 3.2: T-Tests
    • 3.3: Comparing (Multiple) Means
    • Assignment 1
    • Assignment 2
  • Module 4
    • Overview
    • 4.1: Combining Datasets (Joins & Binds)
    • 4.2: K-Nearest Neighbor
    • 4.3: Roads and Regressions
    • 4.4: Multiple Regression
    • 4.5: Writing Functions
    • Assignment 1
    • Assignment 2
    • Assignment 3
    • Assignment 4
  • Module 5
    • Overview
    • 5.1: Population Growth
    • 5.2: Sustainable Fishing
    • 5.3: Comparing Populations
    • Assignment 1
    • Assignment 2
    • Assignment 3
  • Final Project

  • Resources
  1. Module 2
  2. Overview

Module 2: Good Food Gone Bad!

Overview

A wave of food poisoning spreads through the Antarctic base, and the team needs to figure out why. Students investigate a potential food contamination event using descriptive statistics and data visualization to track down the culprit. Along the way, they are introduced to histograms, scatter plots, and box plots in both base R and ggplot2, and they develop an eye for what makes a visualization effective or misleading. By the end of the module, students have solved the problem and begun exploring a dataset of their own for the course’s final project.

Learning Objectives

By the end of this module, students will be able to:

  • distinguish between descriptive and inferential statistics and explain when each is appropriate
  • calculate and interpret measures of central tendency and variation, including mean, median, and standard deviation
  • create histograms and scatter plots using base R syntax
  • build plots iteratively in ggplot2 using ggplot(), aes(), geom functions, labs(), and theme() functions
  • select an appropriate plot type based on the number and types of variables being visualized
  • create histograms, multiple histograms, scatter plots, and box-and-whisker plots in ggplot2
  • evaluate the effectiveness of a data visualization and identify common pitfalls
  • write a research question with a clearly defined dependent and independent variable

Lessons & Assignments

Lessons

Lesson QMD Data Files
2.1: Intro to Visualizations Download sick_data.csv
2.2: More Visualizations Download sick_data.csv
2.3: Exploratory Data Analysis Download None
2.4: Intro to Statistical Testing Download fish_sick_data.csv
2.5: More Statistical Testing Download fish_sick_data.csv

Assignments

Assignment QMD Data Files Outputs
M2A1: Choosing a Research Question Download fish_sick_data.csv Download
M2A2: Analyzing Growth Rates Download tilapia_growth.csv Download
M2A3: Exploratory Data Analysis Download krill.csv, fur_seals.csv, gentoos_and_temps.csv, chinstraps_on_signy.csv None

GitHub

To clone the entire course, visit the course GitHub repository.

2026, University of Arizona & Lewis & Clark College

 
  • Made with Quarto