Database Reference
In-Depth Information
this chapter, it is useful to envision how the presented R functionality will be used
in a more comprehensive analysis.
3.1.1 R Graphical User Interfaces
R software uses a command-line interface (CLI) that is similar to the BASH shell
in Linux or the interactive versions of scripting languages such as Python. UNIX
and Linux users can enter command R at the terminal prompt to use the CLI. For
Windows installations, R comes with RGui.exe, which provides a basic graphical
user interface (GUI). However, to improve the ease of writing, executing, and
debugging R code, several additional GUIs have been written for R. Popular GUIs
include the R commander [3], Rattle [4], and RStudio [5]. This section presents a
brief overview of RStudio, which was used to build the R examples in this topic.
Figure 3.3 provides a screenshot of the previous R code example executed in
RStudio.
Figure 3.3 RStudio GUI
The four highlighted window panes follow.
Scripts: Serves as an area to write and save R code
Workspace: Lists the datasets and variables in the R environment
Plots: Displays the plots generated by the R code and provides a
straightforward mechanism to export the plots
Console: Provides a history of the executed R code and the output
Additionally, the console pane can be used to obtain help information on R. Figure
3.4 illustrates that by entering ?lm at the console prompt, the help details of the
Search WWH ::




Custom Search