Day 3: Visualization, version control, and simulation

This session will be held in JRR 399.

Visualization slides (AM) here.

Visualization exercise (AM) PDF instructions here.

Visualization exercise (AM) Quarto template here.

Visualization exercise (AM) solutions here.

Version control slides (PM) here.

Probability and simulation slides (PM) here.

Probability and simulation exercise (AM) PDF instructions here.

Probability and simulation exercise (AM) Quarto template here.

Probability and simulation exercise (AM) solutions here.


Base R plots

ggplot2

  • Tidyverse plotting
  • Small exercise

Version control

  • git and GitHub

Distributions and random draws

  • sample() and set.seed()
  • Drawing from distributions: rnorm(), runif(), rbinom()
  • The r, p, d, and q family: pnorm(), dnorm(), qnorm()
  • Simulation as a four-step recipe: replicate() and resampling

Big exercise: simulation