Chapter 3 Advanced Plots with ggplot
The ggplot2 package, created by Hadley Wickham, offers a powerful graphics language for creating elegant and complex plots. Its popularity in the R community has exploded in recent years. Originally based on Leland Wilkinson’s The Grammar of Graphics, ggplot2 allows you to create customized graphs tailored to your problem by building the plots with layers. This chapter walks you through common forms of visualization and how you can use ggplot to create advanced, publication worthy graphics.
- Line chart
- Scatter plot
- Box plots
- Wilkinson dot plot
- Correlograms
- Heatmap
- Mosaic plot
- Geographical maps
- Small multiples