Introduction to R and RStudio


Figure 1

Screenshot of RStudio showing the 4 "panes".

Figure 2

Screenshot of the RStudio Global Options, with "Restore .RData into workspace at startup" unchecked, and "Save workspace to .RData on exit" set to "Never".

Figure 3

RStudio Files pane with current directory path highlighted.

Data visualization with ggplot2


Figure 1


Figure 2


Figure 3


Figure 4


Figure 5


Figure 6


Figure 7


Figure 8


Figure 9


Figure 10


Figure 11


Figure 12


Figure 13


Figure 14


Figure 15


Figure 16


Figure 17


Figure 18


Figure 19


Figure 20


Figure 21


Figure 22


Figure 23


Figure 24


Figure 25


Figure 26


Figure 27


Figure 28


Figure 29


Figure 30


Figure 31


Figure 32


Exploring and understanding data


Working with data


Figure 1


Figure 2


Figure 3

Diagram depicting the behavior of `pivot_wider()` on a small tabular dataset.

Figure 4

Diagram depicting the behavior of `pivot_longer()` on a small tabular dataset.