Learning Objectives

After this topic, students will be able to:

  • Install packages for data visualization in R
  • Use ggplot plotting functions
  • Add plots to an rmarkdown document
  • Explain what metadata is

Day 1

Class set up (5 min)

Intro to the working dataset and class set up (15 min)

Reading TSV files (10 min)

Data quality control check (10 min)

Intro to the package ggplot2 (10 min)

A scatter plot (10 min)

Adding labels (5 min)

Rescaling axes (5 min)

Grouping: Plotting data by another variable (10 min)

In-class Activity (10 min)



Day 2

Introduction (30 min)

In-class Activity (5 min)

Fitting linear models (10 min)

Data distribution: Histograms and bar plots (10 min)

Layering multiple data (10 min)

Saving plots as image files (5 min)

In-class Activit (20 min) and home exercises (20 min)