About Pictures_in_R
The data analyses in "Pictures in R" are based on a course in data analysis  i gave during May 2011 at the University of Vienna.  I prepared notes in Word for the course, including data description, R commands, R output,  pictures produced by R, and other pictures relevant to the topic in had.  It is difficult to edit and assemble material from these diverse sources,  so I decided to try to devise an editor which would operate on an rtf file similar to the files containing the notes. 
This follows the Sweave program for including R in Latex, which ,appropriately, was developed at the University of Vienna by Freidrich Leisch
Friedrich Leisch. Sweave: Dynamic generation of statistical reports using literate data analysis. In Wolfgang Härdle and Bernd Rönz, editors, Compstat 2002 - Proceedings in Computational Statistics, pages 575-580. Physica Verlag, Heidelberg, 2002. ISBN 3-7908-1517-9.
The present files were prepared with RinWord, an R script that operates on an rtf file, identifies and executes R commands in that file, and restores the file, together with any output and pictures generated. Unlike in Sweave, the RinWord operation is wysiwyg on that file. You change the commands and commentary how you want, then run RinWord to return a file that now contains the product of the changed program. 
If you want to try it, the RinWord script is included in the directory. Running RinWord on any one of the  rtf files will reproduce that file. You will need to include the data and picture directories for that file.
 John Hartigan, Yale University, October 2013