11.1 Visualisation Setup

20200608 Packages used in this chapter include GGally (Schloerke et al. 2021), RColorBrewer (Neuwirth 2014), colorRamps (Keitt 2012), dplyr (Wickham et al. 2021), epitools (Aragon 2020), ggplot2 (Wickham et al. 2020), lubridate (Spinu, Grolemund, and Wickham 2021), randomForest (Breiman et al. 2018), scales (Wickham and Seidel 2020), stringr (Wickham 2019b), tidyr (Wickham 2021), magrittr (Bache and Wickham 2020), and rattle (G. Williams 2021).

Packages are loaded into the currently running R session from your local library directories on disk. Missing packages can be installed using utils::install.packages() within R. On Ubuntu, for example, R packages can also be installed using $ wajig install r-cran-<pkgname>.

# Load required packages from local library into the R session.

library(GGally)       # Pairs plots.
library(RColorBrewer) # Brew various colour ranges.
library(colorRamps)   # Generate colour ranges: blue2green2red().
library(dplyr)        # glimpse().
library(epitools)     # Colour selection: colors.plot().
library(ggplot2)      # Visualise data.
library(lubridate)    # Tidy dates and time.
library(scales)       # commas(), percent().
library(stringr)      # str_replace_all().
library(tidyr)        # Tidy the dataset: pivot_longer().
library(rattle)       # Dataset weatherAUS.


Your donation will support ongoing development and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0.