Summary

In this chapter, we gave you an overview of the landscape of plotting packages in R. We got an introduction to graphic devices and the fundamental graphic package base. This includes the base graphic parameters, and how to annotate with base plotting functions. The basic process of plot creation with this package is first, the initialization of a new plot, and second, the extension of an existing plot.

This was followed by a short overview of the famous Lattice package, which makes it possible to create a plot including any annotations with only a single function call.

After that, we gave you an introduction into the world of ggplot2. Hadley Wickham created this graphics package, and it is based on The Grammar of Graphics book, written by ...

Get Mastering RStudio – Develop, Communicate, and Collaborate with 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.