LogoLogo
  • Start Here
    • Introduction to NCIL
      • Welcome
      • Mission Statement
      • Getting Started
      • Make this handbook better!
  • Policies & Expectations
    • Working in NCIL
      • Aaron's Philosophy on Supervision
      • General Policies
      • Roles & Expectations
        • Interpersonal and Working Relationships
        • Lab Director: Aaron Newman
        • Lab Manager: Cindy Hamon-Hill
        • Collaborators
        • Postdocs
        • Lab Research Assistants
        • Graduate Students
        • Undergraduate Students
      • Work Ethic
        • Vacations & Absences
      • Money
        • Employment
        • Undergraduate Research Awards
        • Graduate Student Funding
    • Communication
      • Basecamp
      • Lab Meetings
      • Communication Among Lab Members
      • Communicating with Research Participants
      • Website & Social Media
      • Meetings with Supervisor
      • Response Times
    • Lab Space and Resources
      • Hours of Operation
        • After-Hours Research
      • Safety
    • Intellectual Property
      • Data
      • Authorship
      • Publishing: Where and When
  • Data Management & Analysis
    • Data Science Tools
      • Jupyter
        • JupyterLab
      • Python
      • R
      • How to set up your computer for NCIL data science
    • Servers & Computers
      • Accounts
      • File Server (NCILNAS)
        • Accessing NCILNAS
      • Compute Server
        • Jupyter
        • VS Code - Setup
        • VS Code - Everyday Use
      • GitHub Copilot
    • Data Analysis
      • Behavioural Data
      • EEG Analysis
      • fMRI Analysis
        • Processing fMRI Data with SPM
        • fMRI Analysis in SPM
      • Power analysis with simR in R
    • Data Management
      • Github
      • Open Science
    • Learn Some Coding
  • How To Run Experiments
    • How to Get a Research Study Started
      • Research Ethics
      • Your Research Protocol
        • Components of a Research Protocol
      • Pilot Testing
    • Running a Participant
      • Communicating With Participants
      • Recruiting
      • Before Each Participant Arrives
      • When a Participant is in the Lab
    • Experiment Programming
      • Stimulus Presentation Programs
      • Brain-Computer Interface Programs (BCI)
      • EEG Trigger Codes
        • Lab Streaming Layer
        • Trigger Code Hardware Setup
        • Timing Test
    • Data Storage & Protection
    • Word Similarity Measures
  • Communicating Science
    • Submitting papers to Aaron for review
    • Lab Meeting Talks
    • Independent Study Course
    • Honours Thesis
      • Getting Started
    • Master's Thesis
    • 😓PhD Dissertation
    • PhD Comps
    • Conferences
    • Publications
    • Reviewing Journal Manuscripts
  • Old
    • VS Code on NCIL server
Powered by GitBook
On this page
  • Installation
  • Recommended Packages and Resources

Was this helpful?

  1. Data Management & Analysis
  2. Data Science Tools

R

PreviousPythonNextHow to set up your computer for NCIL data science

Last updated 2 years ago

Was this helpful?

R is a powerful programing language for data visualization and statistical analysis.

Installation

R can be installed standalone, but RStudio is highly recommended as a working environment. Be sure to . On the left side of the web page you can install it from the CRAN mirror. After the install is complete, you can .

Alternatively, you can use R within Jupyter Lab. This is Aaron's preferred approach. See the next section on .

Recommended Packages and Resources

R packages can be installed in RStudio with install.packages("package") typed into the console. The R package is the gold standard for data visualization. For data manipulation, base R has many functions, but the package increases the functionality for some applications. For simplicity, installing the entire collection of packages is another option, and can be done with install.packages("tidyverse"). It should also be noted that when using the packages, they must first be instantiated using at the beginning of the R file with library("[package]")

For learning how to use R, and R packages, Datacamp has multiple relevant courses - please see ""

is a fantastic web resource for data visualization using R, including code examples and graph ideas based on what type of data you have.

first install R
install RStudio
How to set up your computer for NCIL Data Science
ggplot2
dplyr
tidyverse
Learn some code
From Data to Viz