Summary

In this chapter, we went through the most important plot types that can be realized with ggplot2. We have seen how to realize histograms and density plots, how to build bar charts and boxplots, and how to create scatterplots for bivariate data. Moreover, you saw the application of special types of plots, such as the representation of time series data, as well as bubble charts. For each plot type, you saw simple examples with the inclusion of additional elements in the basic plot, such as faceting and change in point size and color, using the qplot function. In the next chapter, we will start using the more sophisticated ggplot function.

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.