Chapter 4

Trellis Graphics: The lattice Package

Chapter preview

This chapter describes how to produce Trellis plots using R. There is a description of what Trellis plots are as well as a description of the functions used to produce them. Trellis plots are designed to be easy to interpret and at the same time provide some modern and sophisticated plotting styles, such as multipanel conditioning. The grid graphics system provides no high-level plotting functions itself, so this chapter also describes one way to produce a complete plot using the grid system.

This part of the book concerns the major graphics packages that are related to the grid graphics system. This graphics system exists in parallel with the traditional graphics system and the ...

Get R Graphics, 2nd 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.