O'Reilly logo

ggplot2 Essentials by Donato Teutonico

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required