Day 2 — Tuesday, January 10th, 2023

Tuesday January 10th

  • 1:30-2:00 Lecture: Intro to R Programming (including conditionals, control flow, etc.)
  • 2:00-2:15 Activity: learnr Tutorial on Conditionals and Control Flow
  • 2:15-2:45 Lecture: Data Dictionaries and Documentation
  • 2:45-3:00 Activity: Q&A + Discussion
  • 3:00-3:05 Break
  • 3:05-3:35 Lecture: Reading in data of various formats
  • 3:35-4:30 Lecture: Intro to ggplot2 (common types of figures, faceting, legends, patchwork, and saving figures)
  • 4:30-4:50 Discussion: What are the ingredients to a ggplot? What makes an effective data visualization?
  • 4:50-5:10 Demonstration of how to do the homework
  • 5:10-5:30 Time to work on homework, chat with classmates, peruse recommended materials, engage in self-affirmation

Homework:

  • Read in a dataset of your choice [we will give you some example datasets you can use] and create a few figures using ggplot2. We want to see students include titles, subtitles, captions, data sources, legends, etc.
    • The figures should include one univariate figure, one bivariate figure, and one figure using facet_wrap or facet_grid
    • If you’re feeling extra, have fun stylizing your plots! Go wild! Try to change up the background, fonts, etc.

Video Recording

Resources

link to daily google doc

link to slide pdfs

Lecture 1: Programming with R

link to view slides fullscreen
link to slide PDFs

Lecture 2: Data Dictionaries and Documentation

link to view slides fullscreen
link to slide PDFs

Lecture 3: Reading in Data

link to view slides fullscreen
link to slide PDFs

Lecture 4: Intro to ggplot2

link to view slides fullscreen
link to slide PDFs