ggplot2 and the grammar of graphics
The ggplot2
package was developed by Hadley Wickham by implementing a completely different approach to statistical plots. As is the case with lattice
, this package is also based on grid
, providing a series of high-level functions that allow the creation of complete plots. The ggplot2
package provides an interpretation and extension of the principles of the book The Grammar of Graphics by Leland Wilkinson. Briefly, The Grammar of Graphics assumes that a statistical graphic is a mapping of data to the aesthetic attributes and geometric objects used to represent data, such as points, lines, bars, and so on. Besides the aesthetic attributes, the plot can also contain statistical transformation or grouping of data. ...
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.