Skip to Main Content

Introduction to R Programming

How to use R

R has it unique interface that makes programming, data analysis and visualization very straightforward.

1. The R Interface

2. Tool Bar, click on "New script" or "Open Script" to start a new code or open an existing onw

3. The Console Panel, the window where the result of code will be display. You can also code in this window, but can only code one line at a time

4. Editor Panel, you would usually code here. In this window, you can code and run many lines at the same time. To run the code, select the lines you wan to run in the editor panel, then press "Crtl + R" in your key borad

5. Graphic Window, this window will appear once your code include the "plot" function