Chapter 14. Graphics

R includes two different packages for plotting data: graphics and lattice. The graphics package contains a wide variety of functions for plotting data. It is easy to customize or modify charts with the graphics package, or to interact with plots on the screen. The lattice package contains an alternative set of functions for plotting data. Lattice graphics are well suited for splitting data by a conditioning variable. This chapter gives an overview of the graphics package. We’ll explain how to use lattice graphics in Chapter 15.

Get R in a Nutshell 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.