Welcome to the Tidyverse
The purpose of this chapter is introducing you to the “Tidyverse”, which consists of a set of inter-compatible packages sharing the same programming philosophy. The Tidyverse is quite extended, so here we aim at highlighting the parts (concepts, packages and specific functions) that are highly likely to be useful to you (PhD students in Statistics). For a more in depth introduction, see the online book R for Data Science.
Chapter 1 of R for Data Science details the programming philosophy underlying the Tidyverse. From a practical point of view, we could say that the Tidyverse is all about data frames. In particular, the Tidyverse provides tools for building and transforming data frames, so that they are in the right (tidy) format for visualization and modelling. The material provided here focusses on:
- introducing pipes
%>%
and explaining their usefulness when programming inR
. - building visualizations with the
ggplot2
package. We’ll go through the basics of this package and we will show why the layer-based framework implemented byggplot2
is very useful when building a library of visual tools. - Manipulating and transforming data using the
dplyr
antidyr
packages, for the purpose of streamlining visualization and modelling.
Contents: