The previous chapter introduced some basic features of plotting in R. This section will introduce the ggplot2 library. ggplot2 is based on concepts from Leland Wilkinson's The Grammar of Graphics, a classic in the data visualization field. The goal of this book was to provide an underlying theory of graphical data display. The framework provided aims to provide a unified viewpoint in which various tools (scatter plots, bar charts, pie charts, and so on) can all be viewed as special cases of a more general concept of graphical data presentation.

For more information on ggplot2, see the home page for the project at http://ggplot2.org/ and the documentation at http://docs.ggplot2.org/current/index.html.

Installing ggplot2 and pandas

ggplot2 is an ...

Get Mastering IPython 4.0 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.