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
References
ggplot2
- Tidyverse plotting
- Small exercise
Version control
- git and GitHub
References
- Happy Git and GitHub for the useR, Ch. 1: Why Git? Why GitHub?
- Happy Git and GitHub for the useR, Ch. 7: Introduce yourself to Git
- Happy Git and GitHub for the useR, Ch. 9: Personal access token for HTTPS
- Happy Git and GitHub for the useR, Ch. 15: New project, GitHub first
- Happy Git and GitHub for the useR, Ch. 31: Fork and clone
- Software Carpentry: Version Control with Git
- Prefresher, Ch. 15: Command-line, git
- Quarto: Publishing to GitHub Pages
Distributions and random draws
sample()andset.seed()- Drawing from distributions:
rnorm(),runif(),rbinom() - The
r,p,d, andqfamily:pnorm(),dnorm(),qnorm() - Simulation as a four-step recipe:
replicate()and resampling
References
- Prefresher, Ch. 12.2–12.5:
sample(), random draws,r/p/d, andset.seed() - R Cookbook, Ch. 8: Probability
- Mercer, A brief visualization of R’s distribution functions
- Plot probability distribution function in R
- R manual: Distributions in the
statspackage - Geyer, Distributions in R — a one-page lookup table for every distribution R ships with
Big exercise: simulation
References