Chapter 19. Advanced graphics with ggplot2
This chapter covers
- An introduction to the ggplot2 package
- Using shape, color, and size to visualize multivariate data
- Comparing groups with faceted graphs
- Customizing ggplot2 plots
In previous chapters, you created a wide variety of 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 four separate and complete graphics systems are currently available.
In addition to base graphics, graphics systems are provided by the grid, lattice, and ggplot2 packages. Each is designed to expand on the capabilities of, and correct for deficiencies in, R’s ...
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.