Getting-Started-with-the-Rcmdr - Getting Started With the R...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Getting Started With the R Commander John Fox 26 August 2006 1 Starting the R Commander Once R is running, simply loading the Rcmdr package by typing the command library(Rcmdr) into the R Console starts the R Commander graphical user interface (“GUI”). To function properly under Windows, the R Commander requires the single-document interface (SDI) to R. 1 After loading the package, RConso le and RCommander windows should appear more or less as in Figures 1 and 2. These and other screen images in this document were created under Windows XP; if you use another version of Windows (or, of course, another computing platform), then the appearance of the screen may di f er. 2 The R Commander and RConso le windows f oat freely on the desktop. You will normally use the menus and dialog boxes of the R Commander to read, manipulate, and analyze data. R commands generated by the R Commander GUI appear in the upper text window (labelled Script Window ) within the main RCommand e r window. You can also type R commands directly into the script window or at the > (greater-than) prompt in the RCon so le ; the main purpose of the R Commander, however, is to avoid having to type commands. Printed output appears by default in the second text window (labelled Output Window ). The lower, gray window (labelled Messages ) displays error messages, warnings, and some other infor- mation (“notes”), such as the start-up message in Figure 2. When you create graphs, these will appear in a separate Graphics Device window. This manual is adapted and updated from Fox (2005). Please address correspondence to [email protected] . 1 The Windows version of R is normally run from a multiple-document interface (“MDI”), which contains the RCon so l e window, Graphical Device windows created during the session, and any other windows related to the R process. In contrast, under the single-document interface (“SDI”), the RConso le and Graphical Device windows are not contained within a master window. There are several ways to run R in SDI mode – for example, by editing the Rconsole F le in R’s etc subdirectory, or by adding --sdi to the Target F eld in the Shortcut tab of the R desktop icon’s Properties . This limitation of the Rcmdr package is inherited from the tcltk package, on which Rcmdr depends. 2 Notice that Rcmdr requires some packages in addition to several of the “recommended” packages that are normally distributed with R, and loads these packages at startup. Rcmdr , the required packages, and many other contributed packages are available for download from the Comprehensive R Archive Network (CRAN) at < > . If these packages are not installed, the Rcmdr will o
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/06/2008 for the course ESM 206 taught by Professor Kendall,berkley during the Spring '08 term at UCSB.

Page1 / 22

Getting-Started-with-the-Rcmdr - Getting Started With the R...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online