21.1 Test Mining Setup

20180603 Packages used in this chapter include RColorBrewer (Neuwirth 2014), Rgraphviz (Hansen et al. 2018), dplyr (Wickham et al. 2021), ggplot2 (Wickham et al. 2020), qdap (Rinker 2020a), qdapDictionaries (Rinker 2018), scales (Wickham and Seidel 2020), stringr (Wickham 2019b), tm (Feinerer and Hornik 2020), wordcloud (Fellows 2018), and rattle (G. Williams 2020).

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(qdapDictionaries)
library(rattle)       # Support: riskchart() errorMatrix().
library(scales)       # Support: commas(), percent().
library(stringr)      # str_replace_all().
library(tm)           # Framework for text mining.
library(wordcloud)

References

Feinerer, Ingo, and Kurt Hornik. 2020. Tm: Text Mining Package. http://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. 2018. Rgraphviz: Provides Plotting Capabilities for r Graph Objects.
Neuwirth, Erich. 2014. 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/.
———. 2020a. Qdap: Bridging the Gap Between Qualitative Data and Quantitative Analysis. http://trinker.github.io/qdap/.
———. 2019b. 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, and Dewey Dunnington. 2020. Ggplot2: Create Elegant Data Visualisations Using the Grammar of Graphics. https://CRAN.R-project.org/package=ggplot2.
Wickham, Hadley, Romain François, Lionel Henry, and Kirill Müller. 2021. Dplyr: A Grammar of Data Manipulation. https://CRAN.R-project.org/package=dplyr.
Wickham, Hadley, and Dana Seidel. 2020. Scales: Scale Functions for Visualization. https://CRAN.R-project.org/package=scales.
Williams, Graham. 2020. Rattle: Graphical User Interface for Data Science in r. https://rattle.togaware.com/.


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.