You are previewing R in Action.

R in Action

Cover of R in Action by Robert Kabacoff Published by Manning Publications
O'Reilly logo

Chapter 16. Advanced graphics

 

This chapter covers
  • Trellis graphs and the lattice package
  • The grammar of graphs via ggplot2
  • Interactive graphics

 

In previous chapters, we created a wide variety of both general and specialized graphs (and had lots of fun in the process). Most were produced using R’s base graphics system. Given the diversity of methods available in R, it may not surprise you to learn that there are actually four separate and complete graphics systems currently available.

In addition to base graphics, we have graphics systems provided by the grid, lattice, and ggplot2 packages. Each is designed to expand on the capabilities of, and correct for deficiencies in, R’s base graphics system.

The grid graphics system provides ...

The best content for your career. Discover unlimited learning on demand for around $1/day.