Chapter 4 Visualization
“Mankind invented a system to cope with the fact that we are so intrinsically lousy at manipulating numbers. It’s called the graph.” —Charlie Munger, Vice Chairman, Berkshire Hathaway
In Chapter 3, we discussed tools for cleaning data. In this chapter, we will turn our attention to the visualization of cleaned data. There are several approaches to creating graphics in R
. Here, we focus on three: base
, ggplot
, and plotly
. In this chapter, we hope to outline the syntax of these systems before providing some examples using the data prepared in previous chapters.