# R Markdown

## Guide for Using an R Package for Reproducible Research

Motivation What I used to do Why use an R package? How-to Guide Requirements Tutorial Setup Workflow Bonus steps Other Readings Motivation I’ve been wondering about the best way to organize (reproducible) research projects in R for a while now. I figured this might be a good spot to write up some thoughts. What I used to do Initially my projects would consist of just a few R files that separate out functions from a main script that calls the functions.

## Making gifs in R with gganimate

Introduction Package Setup Data Forecasting Generate data to plot Figure Introduction Since I’m writing R code to make certain figures for this website, I thought I could go ahead and annotate some of it in R markdown to serve as blog posts. Package Setup library(tidyverse) ## ── Attaching packages ────────────────────────────────────────────────────────────── tidyverse 1.2.1 ── ## ✔ ggplot2 3.0.0.9000 ✔ purrr 0.2.5 ## ✔ tibble 1.4.2 ✔ dplyr 0.