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 ✔ purrr 0.2.5 ## ✔ tibble 1.4.2 ✔ dplyr 0.