Visualize
The visualize module will provide an introduction to two graphics systems in R. The first is the graphics package that comes, by default, when you install R. The second is the ggplot2 package that must be installed separately, but is included in the tidyverse
that you have likely already installed. After we briefly introduce graphics created from the graphics package, we will spend most of the time on ggplot2 graphics.
The graphics package comes when you install base R and is attached, by default, every time you start R. This package provides a lot of functionality, but it does not have a consistent syntax across different types of plots.
In contrast, ggplot2 graphics are built on the Grammar of Graphics and provide a consistent interface across different types of plots.