These notes were developed, in Australia over 2003 -- 2014, for use in R courses that were presented to groups within universities, within CSIRO, and within Government departments. Each new course offered the chance to extend and refine the content, and to add content that was tuned to the requirements of the new audience. The result is a somewhat eclectic mix of material. The notes are provided here with the intention that others will be free, with appropriate acknowledgement, to add to them, or to develop them for their own purposes.
The figure
subdirectory, can be generated by running the R command:
knitr::knit('Rnw/intro.Rnw')
Most chapters will require several R packages to be available.
The R package DAAGviz is designed as a companion to these notes. It gives access to several of the datasets that are used. It gives access code that will reproduce the graphs. The most recent version can be installed, from an R session (the devtools package must be installed), by executing the command:
devtools::install_github("jhmaindonald/DAAGviz")
(Some code files may still, at this point, show in their comment lines chapter numbers that reflect an older version of the notes. This should be fixed shortly.)
To check code from individual files enter, from the command line, commands of the form:
require(knitr)
knit('Rnw/0intro.Rnw')
To knit
the root file learnR.Rnw, enter:
knit('Rnw/learnR.Rnw')