24GOING FURTHER WITH THE GRAMMAR OF GRAPHICS

image

You covered the basics of the ggplot2 package—which offers an alternative to traditional R graphics—in Section 7.4 and throughout Chapter 14. In this chapter, you’ll look at a couple of this package’s more popular and useful features, as well as its relatively young cousin, ggvis, which provides an interactive, browser-based experience.

24.1 ggplot or qplot?

So far when creating the relatively simple ggplot2 graphics, you’ve used the qplot function to initialize the visual object. In fact, the more general ggplot command is the core function of ggplot2. There are several key differences between these ...

Get The Book of R 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.