Set up

  1. Install R and Rstudio.
  2. Install a set of development tools:
    • On Windows, download and install Rtools.
    • On Mac, install the Xcode command line tools.
    • On Linux, install the R development package, usually called r-devel or r-base-dev.
  3. Install the following R packages.
install.packages("tidyverse")
install.packages("devtools")
devtools::install_github("gmlang/ezplot")

Note: throughout this book, if when displaying plots, you encounter an error like this, Error in grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : polygon edge not found, just run dev.off() and then print(p).