R

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 first install Rarrow-up-right. On the left side of the web page you can install it from the CRAN mirror. After the install is complete, you can install RStudioarrow-up-right.

Alternatively, you can use R within Jupyter Lab. This is Aaron's preferred approach. See the next section on How to set up your computer for NCIL Data Science.

R packages can be installed in RStudio with install.packages("package") typed into the console. The ggplot2arrow-up-right R package is the gold standard for data visualization. For data manipulation, base R has many functions, but the dplyr arrow-up-rightpackage increases the functionality for some applications. For simplicity, installing the entire collection of tidyversearrow-up-right 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 "Learn some code"

From Data to Vizarrow-up-right is a fantastic web resource for data visualization using R, including code examples and graph ideas based on what type of data you have.

Last updated

Was this helpful?