first-time knitr for figures 6.7 and 6.8