Prerequisites

This is a solution to the problems in ggplot2-book. In order to run all the solution, following packages need to be installed and loaded.

# devtools::install_github("hadley/tidyverse")
pkgs <- c("ggplot2", "dplyr", "pander", "stringr")
for (pkg in pkgs) require(pkg, character.only = TRUE)