R Commander basics
When you start
R Commander you will see a window similar to Figure 1.2. This GUI has the following items:
- Drop-down menus. They are pretty self-explanatory. A quick summary:
'File'. Saving options for different files (
.RData). The latter corresponds to saving the workspace of the session.
'Edit'. Basic edition within the GUI text boxes (
'Data'. Import, manage and manipulate datasets.
'Statistics'. Perform statistical analyses, such as
'Graphs'. Compute the available graphs (depending on the kind of variables) for the active dataset.
'Models'. Graphical, numerical and inferential analyses for the active model.
'Distributions'. Operations for continuous/discrete distributions: sampling, computation of probabilities and quantiles, and plotting of density and distribution functions.
'Tools'. Options for
R Commander. Here you can
'Load Rcmdr plug-in(s)...', which enables to expand the number of menus available via plug-ins.
R Commanderwill need to restart prior to loading a plug-in. (A minor inconvenience is that the text boxes in the GUI will be wiped out after restarting. The workspace is kept after restarting, so the models and datasets will be available – but not selected as active.)
'Help'. Several help resources.
- Dataset manipulation. Select the active dataset among the list of loaded datasets. Edit (very basic) and view the active dataset.
- Model selector. Select an active model among the available ones to work with.
- Switch to script or report mode. Switch between the generated
Rcode and the associated
- Input panel. The
Rcode generated by the drop-down menus appears here and is passed to the output console. You can type code here and run it without using the drop-down menus.
- Submit/Generate report buttom. Allows to pass and run selected
Rcode to the output console (keyboard shortcut:
'Control' + 'R').
- Output console. Shows the commands that were run (red) and their visible result (blue), if any.
- Messages. Displays possible error messages, warnings and notes.
When you close
R Commander you will be asked on what files to save:
'script file' and
'R Markdown file' (contents in the two tabs of panel 5, respectively), and
'output file' (panel 7). If you want to save the workspace, you have to do it through the
Focus on understanding the purpose of each element in the GUI. When performing the real-case studies we will take care of explaining the many features of
R Commander step by step.