10.07.2015 Views

Using R for Introductory Statistics : John Verzani

Using R for Introductory Statistics : John Verzani

Using R for Introductory Statistics : John Verzani

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix C 355materials is no different from creating other documents, except, perhaps, the inclusion ofgraphics.Many newer word processors can import encapsulated PostScript files <strong>for</strong> figures.These are output by the dev. copy2eps () function. If your word processor imports pdffiles, these can be made using the pdf driver with a command such as> dev.print(file=filename, device=pdf)To save a graphic in a <strong>for</strong>mat suitable <strong>for</strong> inclusion in a word processor in Windows, usethe right mouse button to pop up the “Save as metafile…” dialog. The graphic can thenbe included in a document by inserting it as a figure.The text-processing system is freely available typesetting software that is wellsuited <strong>for</strong> technical writing. The Sweave() function of the utils package integrates withto produce documents that automatically insert R commands and output into adocument. One especially nice feature is the automatic inclusion of figures. For morein<strong>for</strong>mation on see http: //www. latex-pro j ect. org/. More in<strong>for</strong>mation on Sweave() is available in its help page: ?Sweave.Some projects <strong>for</strong> teaching with R At the time of writing, there are at least twoprojects under way that are producing materials <strong>for</strong> using R in a classroom setting.The StatDocs project, by Deborah Nolan and coworkers, aims to create a framework<strong>for</strong> presenting statistics materials using R and some add-on packages from the Omegahatproject, http://www.omegahat.org/.The Stem and Tendril project, http://www.math.csi.cuny.edu/st, by this author andcolleagues, is producing freely available projects <strong>for</strong> statistics computer labs that can beused at various levels in the statistics curriculum.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!