R Graphics Second Edition Updates

This page contains descriptions of updates that are required to any of the examples in the book. These are distinguished from Errata because they are errors in the original book that have only become errors due to changes in the underlying software.

All of these changes have been made to the code for the Figures that is posted on these web pages.

  1. p. 151, 'ggplot2' no longer allows the "shape" aesthetic to be a numeric, so the invisible code that sets up 'mtcars2' creates the 'gear' column as a factor now (and more invisible code inhibits the legend that would otherwise show up in Figure 5.4 [top-right]).
  2. p. 223, The naming of 'ggplot2' viewports has changed so the code has to change to say "panel.3-4-3-4".
  3. p. 253, The naming of 'ggplot2' viewports has changed so the code has to change to say "panel.3-4-3-4".
  4. pp. 367-369 (including Figure 12.3): the package 'compositions' has been removed from CRAN, so the code for Figure 12.3 no longer includes the rcomp() example (at bottom-left) and the 'RGraphics' package no longer has any dependency on the 'compositions' package.
  5. Figure 12.6 (p. 377): the underlying code has been simplified to take advantage of enhancements to 'openair' (KR).
  6. Section 14.1.1 (page 399): the 'gmaps' package has been removed from CRAN (archived versions are still available).
  7. p. 424, The 'igraph' package now numbers nodes from 1 rather than from 0.
  8. Section 17.3.1 (page 467): the 'latticist' package has been removed from CRAN (archived versions are still available).
KR = Karl Ropkins