Chapter 7. Special Applications of ggplot2
In this chapter, we will see some examples of applications of ggplot2
for creating particular kinds of plots. We will see how it is possible to include maps in plots as well as add data to such maps; we will see how to draw scatterplot matrices to represent the relationships between different variables; finally, we will see how to generate heat maps. Although, in principle, it is also possible to realize these plots using only ggplot2
, in some cases it is a lot more convenient and faster to use additional packages where the particular plot layout is already implemented.
Plotting maps with ggplot2 and ggmap
In ggplot2
, it is possible to include maps as well as map data within a plot. This can be done thanks ...
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.