Chapter 5. Controlling Plot Details

Although, by now, you have gained a good understanding of how to make plots, you certainly realize that we did not discuss how to change the default details of the plot, which are automatically set up by ggplot2. In this chapter, we will go through how to personalize details such as the plot title and axis, axis scales, plot background, and the legend details. We will then see examples of of layout changes that can be applied to facet plots.

Exploring scales

We already discussed scales in different situations but, in this case, we will focus on certain general aspects that will turn out to be essential for you to understand how to fully utilize the different scales available. Generally speaking, the scales are ...

Get ggplot2 Essentials 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.