1  Tie Your Seatbelt

To fully execute the tutorial, you’ll need to install the following packages:

1.1 Installing Packages

To install the necessary packages, run the following code:

# install CRAN packages
install.packages(
  c("ggplot2", "tibble", "tidyr", "forcats", "purrr", "prismatic", "corrr", 
    "cowplot", "ggforce", "ggrepel", "ggridges", "ggsci", "ggtext", "ggthemes", 
    "grid", "gridExtra", "patchwork", "rcartocolor", "scico", "showtext", 
    "shiny", "plotly", "highcharter", "echarts4r")
)

# install from GitHub since not on CRAN
install.packages(devtools)
devtools::install_github("JohnCoene/charter")

For instructional purposes, and to ensure smooth transitions for learners navigating directly to specific plots, I’ll load the necessary package beside {ggplot2} in the corresponding section.