R for Data Visualisation and Statistical Analysis


Alice Dias Lopes
Justin Chun-ting Ho
Luis Reyes Figueroa

(Realistic) Learning Objectives:

By the end of the course, you will be able to:
  1. Copy and paste a chunk of codes and make it work
  2. Read documentation and R scripts so that you can further your learning independently

    Credit:



    R & R Studio

    Create a new project

    1. Under the File menu, click on New project, choose New directory, then New project
    2. Enter a name for this new folder, and choose a convenient location
    3. Click on Create project
    4. Create a new file where we will type our scripts

    Interaction with R

    • Type commands directly into the console and press 'Enter'
    • Execute commands directly from the script editor using 'Ctrl' + 'Enter' ('Cmd' + 'Return' for Macs)

    Installing additional packages using the packages tab

    Exercise

    • Use the install option from the packages tab to install the ‘tidyverse’ package.

    Tidyverse

    Grammar of Graphics