In the next few pages, you will see how to apply the principles of the The Grammar of Graphics with the
ggplot2 package. With this package, you are able to change a lot of details in your graphics and create your own individual style. We will give you examples of some of its main settings.
You can find the
ggplot2 package on CRAN, which makes it very easy to install it:
You are then able to simply load it with the following:
Or, you can just check the box in front of the package name in the packages pane of RStudio:
ggplot2 package provides ...