Guides & Resources

D2MR Workflow & Course Guides

Guides and walk-throughs to get you through many of the gritty bits of D2MR.1

Resources

This list is updated regularly. Find a great resource that others might appreciate? Email Dr. Dowling to add to the list!

General

  • STAT545
    • The course website for a similar (and much more comprehensive!) course originated at UBC by Jenny Bryan
  • R for Graduate Students
    • A bookdown guide written by a PhD student with the grad student “true beginner” in mind

Documentation & References

Git & github

R

R Markdown

Quarto

Tidyverse and R Packages

ggplot2 and Visualization

Transitioning to R

Example datasets

Many/most datasets from these sources may be used for mini-projects in some capacity. Post a link in the Slack channel if you want to double check whether data you have in mind is a good fit.

Essentials

  • R
  • RStudio
  • GitHub
  • GitHub Desktop
    • Not used in this class, but can be handy when RStudio’s Git pane is being finicky
  • R packages (install with the install.packages command)2
    • tidyverse
      • Suite of packages for data manipulation and visualization, including ggplot2
    • knitr
      • Dynamic report generation, necessary for Quarto/R markdown
    • bibtex
      • Citation management in markdown
    • DescTools
      • Tools for descriptive statistics
    • Other useful packages:
      • papaja
        • Alternative to apaquarto for creating APA-style manuscripts
      • psych
        • Data analysis with psychologists’ common needs in mind
      • stats
        • Base R functions for statistical analysis, a nice complement to the psych package, but also has some conflicts with it, so be thoughtful the order you load them in
      • lme4
        • Fitting linear mixed-effects models
      • data.table
        • Fast data manipulation, not necessarily always the most cooperative with the tidyverse
      • ggpubr
        • Publication-ready plots
      • ggsci
        • Color palettes for ggplot2 based on journals, universities, and pop culture (my favorite is Futurama)
      • patchwork
        • Combine multiple ggplot2 plots into one
      • RColorBrewer
        • Color palettes for R
      • vcd
        • Visualizing categorical data

Footnotes

  1. If you have stumbled upon this page without be a member of the class (hello!) you may or may not find these guides helpful, and you may even – very validly – disagree with how I present things. These guides are created specifically for the class From Data to Manuscript in R at the University of Chicago, which is a short, hands-on crash course with no prerequisites. They are by no means comprehensive, definitive, or universal.↩︎

  2. If packages fail to install with the install.packages command, you can typically download them directly from the package’s GitHub page with remotes::install_github("crsh/papaja"). Replace crsh/papaja with whatever follows “github.com/”.↩︎