14.1 ML Setup

20210102 Packages used in this chapter include ROCR (Sing et al. 2026), ggplot2 (Wickham, Chang, et al. 2026), rpart (Therneau and Atkinson 2026), and rattle (G. Williams 2026).

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(ROCR)         # Use prediction() for evaluation.
library(ggplot2)      # Display evaluations.
library(rattle)       # Dataset: weather.
library(rpart)        # ML: decision tree rpart().
library(scales)       # Support: commas(), percent().

References

Sing, Tobias, Oliver Sander, Niko Beerenwinkel, and Thomas Lengauer. 2026. ROCR: Visualizing the Performance of Scoring Classifiers. https://ipa-tys.github.io/ROCR/.
Therneau, Terry, and Beth Atkinson. 2026. Rpart: Recursive Partitioning and Regression Trees. https://github.com/bethatkinson/rpart.
Wickham, Hadley, Winston Chang, Lionel Henry, Thomas Lin Pedersen, Kohske Takahashi, Claus Wilke, Kara Woo, Hiroaki Yutani, Dewey Dunnington, and Teun van den Brand. 2026. Ggplot2: Create Elegant Data Visualisations Using the Grammar of Graphics. https://ggplot2.tidyverse.org.
Williams, Graham. 2026. Rattle: R Data Science Supporting Rattle. https://togaware.com/projects/rattle/.


If you find this curated material useful then you can consider a donation to support it's ongoing availability and give you access to the PDF version of this book. The material has been scoped up by Generative AI without permission or any kind of recompense so do consider a donation if you can afford it. Unlike Generative AI your access to this materials is freely given. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Togaware has a 30 year tradition of making popular open source software which includes sold privacy preserving productivity apps, 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