Bonus Chapter 23. Advanced graphics with the lattice package

This chapter covers

  • An introduction to the lattice package
  • Grouping and conditioning
  • Adding information with panel functions
  • Customizing a lattice graph’s appearance

In this book, you created a wide variety of graphs using base functions from the graphics package included with R and specialized functions from author-contributed packages. In chapter 19, you learned a new syntax for creating graphs using functions from the ggplot2 package. The ggplot2 package offers an alternative to R’s base graphics and is particularly useful when creating complex plots.

In this bonus chapter, we’ll look at the lattice package, written by Deepayan Sarkar (2008); this package implements trellis ...

Get R in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.