I wanted to upgrade my ggplot-fu and I love baseball stats!
This repo contains example figures from each chapter in David Robinson's Introduction to Empirical Bayes: Examples from Baseball Statistics
Each chapter should be completely self-contained. You should be able to run each on it's own given the proper libraries are installed on your machine.
You will at least need the following libraries installed on your machine
- dplyr
- tidyr
- ggplot2
- Lahman
Clone this repo onto your machine, and run each chapter's R
script on your machine