21.1 Test Mining Setup

20180603 Packages used in this chapter include RColorBrewer (Neuwirth 2022), Rgraphviz (Hansen et al. 2023), dplyr (Wickham et al. 2023), ggplot2 (Wickham et al. 2024), qdap (Rinker 2023), qdapDictionaries (Rinker 2018), scales (Wickham, Pedersen, and Seidel 2023), stringr (Wickham 2023), tm (Feinerer and Hornik 2023), wordcloud (Fellows 2018), and rattle (G. Williams 2023).

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(RColorBrewer) # Generate palette of colours for plots.
library(Rgraphviz)    # Correlation plots.
library(dplyr)        # Data wrangling, pipe operator %>%().
library(ggplot2)      # Plot word frequencies.
library(qdap)         # Quantitative discourse analysis of transcripts.
library(rattle)       # Support: riskchart() errorMatrix().
library(scales)       # Support: commas(), percent().
library(stringr)      # str_replace_all().
library(tm)           # Framework for text mining.


Feinerer, Ingo, and Kurt Hornik. 2023. Tm: Text Mining Package. https://tm.r-forge.r-project.org/.
Fellows, Ian. 2018. Wordcloud: Word Clouds. https://CRAN.R-project.org/package=wordcloud.
Hansen, Kasper Daniel, Jeff Gentry, Li Long, Robert Gentleman, Seth Falcon, Florian Hahne, and Deepayan Sarkar. 2023. Rgraphviz: Provides Plotting Capabilities for r Graph Objects. https://doi.org/10.18129/B9.bioc.Rgraphviz.
Neuwirth, Erich. 2022. RColorBrewer: ColorBrewer Palettes. https://CRAN.R-project.org/package=RColorBrewer.
Rinker, Tyler. 2018. qdapDictionaries: Dictionaries and Word Lists for the Qdap Package. http://trinker.github.com/qdapDictionaries/.
———. 2023. Qdap: Bridging the Gap Between Qualitative Data and Quantitative Analysis. https://trinker.github.io/qdap/.
———. 2023. Stringr: Simple, Consistent Wrappers for Common String Operations. https://CRAN.R-project.org/package=stringr.
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://CRAN.R-project.org/package=ggplot2.
Wickham, Hadley, Romain François, Lionel Henry, Kirill Müller, and Davis Vaughan. 2023. Dplyr: A Grammar of Data Manipulation. https://CRAN.R-project.org/package=dplyr.
Wickham, Hadley, Thomas Lin Pedersen, and Dana Seidel. 2023. Scales: Scale Functions for Visualization. https://CRAN.R-project.org/package=scales.
Williams, Graham. 2023. 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