11.1 Visualisation Setup

20200608 Packages used in this chapter include GGally (Schloerke et al. 2024), RColorBrewer (Neuwirth 2022), colorRamps (Keitt 2024), dplyr (Wickham et al. 2023), epitools (Aragon 2020), geomtextpath (Cameron and van den Brand 2024), ggblanket (Hodge 2024), ggplot2 (Wickham et al. 2024), lubridate (Spinu, Grolemund, and Wickham 2023), patchwork (Pedersen 2024), randomForest (Breiman et al. 2024), scales (Wickham, Pedersen, and Seidel 2023), stringr (Wickham 2023), tidyr (Wickham, Vaughan, and Girlich 2024), magrittr (Bache and Wickham 2022), and rattle (G. Williams 2024).

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(geomtextpath) # Flexible text placement.
library(ggblanket)    # A comfortable wrapper for ggplot.
library(ggplot2)      # Visualise data.
library(lubridate)    # Tidy dates and time.
library(patchwork)    # Plot themes, alignment, arrangement.
library(scales)       # commas(), percent().
library(stringr)      # str_replace_all().
library(tidyr)        # Tidy the dataset: pivot_longer().
library(rattle)       # Dataset weatherAUS.

References

Aragon, Tomas J. 2020. Epitools: Epidemiology Tools.
Bache, Stefan Milton, and Hadley Wickham. 2022. Magrittr: A Forward-Pipe Operator for r. https://magrittr.tidyverse.org.
Breiman, Leo, Adele Cutler, Andy Liaw, and Matthew Wiener. 2024. randomForest: Breiman and Cutlers Random Forests for Classification and Regression. https://www.stat.berkeley.edu/~breiman/RandomForests/.
Cameron, Allan, and Teun van den Brand. 2024. Geomtextpath: Curved Text in Ggplot2. https://allancameron.github.io/geomtextpath/.
Hodge, David. 2024. Ggblanket: Simplify Ggplot2 Visualisation. https://davidhodge931.github.io/ggblanket/.
Keitt, Tim. 2024. colorRamps: Builds Color Tables.
Neuwirth, Erich. 2022. RColorBrewer: ColorBrewer Palettes.
Pedersen, Thomas Lin. 2024. Patchwork: The Composer of Plots. https://patchwork.data-imaginist.com.
Schloerke, Barret, Di Cook, Joseph Larmarange, Francois Briatte, Moritz Marbach, Edwin Thoen, Amos Elberg, and Jason Crowley. 2024. GGally: Extension to Ggplot2. https://ggobi.github.io/ggally/.
Spinu, Vitalie, Garrett Grolemund, and Hadley Wickham. 2023. Lubridate: Make Dealing with Dates a Little Easier. https://lubridate.tidyverse.org.
———. 2023. Stringr: Simple, Consistent Wrappers for Common String Operations. https://stringr.tidyverse.org.
Wickham, Hadley, Winston Chang, Lionel Henry, Thomas Lin Pedersen, Kohske Takahashi, Claus Wilke, Kara Woo, Hiroaki Yutani, Dewey Dunnington, and Teun van den Brand. 2024. Ggplot2: Create Elegant Data Visualisations Using the Grammar of Graphics. https://ggplot2.tidyverse.org.
Wickham, Hadley, Romain François, Lionel Henry, Kirill Müller, and Davis Vaughan. 2023. Dplyr: A Grammar of Data Manipulation. https://dplyr.tidyverse.org.
Wickham, Hadley, Thomas Lin Pedersen, and Dana Seidel. 2023. Scales: Scale Functions for Visualization. https://scales.r-lib.org.
Wickham, Hadley, Davis Vaughan, and Maximilian Girlich. 2024. Tidyr: Tidy Messy Data. https://tidyr.tidyverse.org.
Williams, Graham. 2024. Rattle: Graphical User Interface for Data Science in r. https://rattle.togaware.com/.


Your donation will support ongoing availability 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-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0