I redid the examples from the book using a different coding style from that of the author.
I prefer ggformula (a formula interface to ggplot2) for graphics.
caveat emptor: I was creating ggformula as I taught this course, so early examples don’t use ggformula and there have likely been a few changes to ggformula since this code was produced.
I also use a slightly modified version of the rethinking package (available via https://github.com/rpruim/rethinking).