16Creating Visualizations with ggplot2
The ability to create visualizations (graphical representations) of data is a key step in being able to communicate information and findings to others. In this chapter, you will learn to use the ggplot2
1 package to declaratively make beautiful visual representations of your data.
1ggplot2
: http://ggplot2.tidyverse.org
Although R
does provide built-in plotting functions, the ggplot2
package is built on the premise of the Grammar of Graphics (similar to how dplyr
implements a Grammar of Data Manipulation; indeed, both packages were originally developed by the same person). This makes the package particularly effective for describing how visualizations should represent data, and has turned it into the preeminent ...
Get Programming Skills for Data Science: Start Writing Code to Wrangle, Analyze, and Visualize Data with R, First Edition 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.