Data Visualization Cookbook

Throughout the book we used quite a few graphs to help you visualize and understand data, but we never went through them systematically. In this cookbook chapter, we will show you how to make a number of different kinds of common graphs in R (most of which you have not seen yet, though for completeness we duplicate one or two).

17.1 Required Packages

First, we will load some packages. Be sure to use install.packages("packageName") for any packages that are not yet installed on your computer. In the section “References,” we cite all these packages, and our reader(s) will note that many are actually quite ...

Get Beginning R: An Introduction to Statistical Programming, Second Edition now with O’Reilly online learning.

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