% \VignetteIndexEntry{Rattle Quick Start Guide} % \VignetteDepends{rattle} % \VignetteKeywords{data mining} % \VignettePackage{rattle} \documentclass[12pt]{article} \usepackage{amsmath} \usepackage[pdftex]{graphicx} \usepackage{color} \usepackage{xspace} \usepackage{fancyvrb} \usepackage{fancyhdr} \usepackage{lastpage} \usepackage{algorithm2e} \usepackage[ colorlinks=true, linkcolor=blue, citecolor=blue, urlcolor=blue] {hyperref} \usepackage{Sweave} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % define new colors for use \definecolor{darkgreen}{rgb}{0,0.6,0} \definecolor{darkred}{rgb}{0.6,0.0,0} \definecolor{lightbrown}{rgb}{1,0.9,0.8} \definecolor{brown}{rgb}{0.6,0.3,0.3} \definecolor{darkblue}{rgb}{0,0,0.8} \definecolor{darkmagenta}{rgb}{0.5,0,0.5} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcommand{\Rattle}{\textsf{Rattle}\xspace} \newcommand{\pkg}[1]{{\tt #1}\xspace} \setlength{\oddsidemargin}{-.25 truein} \setlength{\evensidemargin}{0truein} \setlength{\topmargin}{-0.2truein} \setlength{\textwidth}{7 truein} \setlength{\textheight}{8.5 truein} \setlength{\parindent}{0.20truein} \setlength{\parskip}{0.10truein} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \pagestyle{fancy} \lhead{} \chead{Rattle} \rhead{} \lfoot{} \cfoot{} \rfoot{\thepage\ of \pageref{LastPage}} \renewcommand{\headrulewidth}{1pt} \renewcommand{\footrulewidth}{1pt} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \title{The Rattle Package: Quick Start Guide} \author{Graham Williams \\ Graham.Williams@togaware.com} \begin{document} \maketitle \thispagestyle{empty} \section{Introduction} \Rattle (Williams, 2011) is a package written in R providing a graphical user interface to very many other R packages that provide functionality for data mining. This quick start guide is under development. See \url{https://rattle.togaware.com} for extensive documentation \section{Requirements} \Rattle depends on over 40 other R packages and a couple of other software applications/libraries that are independent of R. The first thing to ensure is that you have installed the GTK+ libraries and the GGobi application. This is operating system dependent and full installation instructions are available from \url{https://rattle.togaware.com/}. Only a couple of R packages are dependencies for \Rattle. Most are suggestions, but without them functionality is quite limited. At a minimum it is useful to ensure you have the \href{https://cran.r-project.org/package=RGtk2}{\pkg{RGtk2}} package installed. Others that you might like to install include: \href{https://cran.r-project.org/package=ada}{\pkg{ada}}, \href{https://cran.r-project.org/package=arules}{\pkg{arules}}, \href{https://cran.r-project.org/package=doBy}{\pkg{doBy}}, \href{https://cran.r-project.org/package=ellipse}{\pkg{ellipse}}, \href{https://cran.r-project.org/package=fBasics}{\pkg{fBasics}}, \href{https://cran.r-project.org/package=fpc}{\pkg{fpc}}, \href{https://cran.r-project.org/package=gplots}{\pkg{gplots}}, \href{https://cran.r-project.org/package=Hmisc}{\pkg{Hmisc}}, \href{https://cran.r-project.org/package=kernlab}{\pkg{kernlab}}, \href{https://cran.r-project.org/package=mice}{\pkg{mice}}, \href{https://cran.r-project.org/package=party}{\pkg{party}}, \href{https://cran.r-project.org/package=playwith}{\pkg{playwith}}, \href{https://cran.r-project.org/package=pmml}{\pkg{pmml}}, \href{https://cran.r-project.org/package=randomForest}{\pkg{randomForest}}, \href{https://cran.r-project.org/package=reshape}{\pkg{reshape}}, \href{https://cran.r-project.org/package=rggobi}{\pkg{rggobi}}, \href{https://cran.r-project.org/package=RGtk2}{\pkg{RGtk2}}, \href{https://cran.r-project.org/package=ROCR}{\pkg{ROCR}}, \href{https://cran.r-project.org/package=RODBC}{\pkg{RODBC}}, and \href{https://cran.r-project.org/package=rpart}{\pkg{rpart}}. The packages will usually be installed with the following command: <>= install.packages("rattle", dependencies=c("Depends", "Suggests")) @ The latest beta version of rattle is available from \url{https://rattle.togaware.com/}: <>= install.packages("rattle", repos="https://rattle.togaware.com", type="source") @ \section{First Steps} Start up rattle: <>= library(rattle) rattle() @ \section{Sipmle Scenario: Build a Couple of Models} \begin{enumerate} \item Click Execute \item Click Yes (load the sample weather dataset) \item Click the Model tab \item Click Execute (to build a decision tree) \item Click Draw to display the decision tree (loads other packages as required) \item Click the Forest radio button \item Click Execute (to build a random forest - loads packages as required) \item Click the Evaluate tab \item Click the Risk radio button (installs packages as required) \item Click Execute to display two Risk (Cummulative) performance plots \item Click the Log tab \item Click the Export button to save script to file weather\_script.R to home folder \end{enumerate} Now exit from R (and rattle) and start R up again. <>= source("~/weather_script.R") @ This will rerun everything that was done in the GUI session but purely as a script. \section{References} \begin{description} \item Williams, G. J. (2009). {\em Rattle: A Data Mining GUI for R}. The R Journal, 1(2), 45-55. URL: \href{https://journal.r-project.org/archive/2009-2/RJournal_2009-2_Williams.pdf} {https://journal.r-project.org/archive/2009-2/RJournal\_2009-2\_Williams.pdf}. \item Williams, G. J. (2011). {\em Data Mining with Rattle and R: The Art of Excavating Data for Knowledge Discovery}. Use R! series. Springer. \href{https://bit.ly/rattle_data_mining}{https://bit.ly/rattle\_data\_mining}. \end{description} \end{document}