Chapter 7. Statistical Graphics
One of the hardest parts of an analysis is producing quality supporting graphics. Conversely, a good graph is one of the best ways to present findings. Fortunately, R
provides excellent graphing capabilities, both in the base installation and with add-on packages such as lattice
and ggplot2
. We will briefly present some simple graphs using base graphics and then show their counterparts in ggplot2
. This will be supplemented throughout the book where supporting graphics—with code—will be made using ggplot2
and occasionally base graphics.
Graphics are used in statistics primarily for two reasons: exploratory data analysis (EDA) and presenting results. Both are incredibly important but must be targeted to different ...
Get R for Everyone: Advanced Analytics and Graphics 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.