tips and tricks to start using the best of R
This material is adapted by Lorena Pantano from the Harvard Chan School Bioinformatics Core Training team at https://github.com/hbctraining/Training-modules/tree/master/Tidyverse_ggplot2.
Audience | Computational skills required | Duration |
---|---|---|
Biologists | Beginner/Intermediate R | 3-hour workshop (~3 hours of trainer-led time) |
This repository has teaching materials for a 3 hour, hands-on workshop led at a relaxed pace.
These materials are developed for a trainer-led workshop, but also amenable to self-guided learning.
Lessons | Estimated Duration |
---|---|
Setting up | 15 min |
Tidyverse | 30 min |
ggplot2 | 30 min |
Rmarkdown | 30 min |
All the files used for the above lessons are linked within, but can also be accessed here.
Download the most recent versions of R and RStudio for your laptop:
Install the required R packages by running the following code in RStudio:
# Install CRAN packages
install.packages("tidyverse")
install.packages("RColorBrewer")
Load the libraries to make sure the packages installed properly:
library(tidyverse)
library(RColorBrewer)
NOTE: The library used for the annotations associated with genes (here we are using
org.Hs.eg.db
) will change based on organism (e.g. if studying mouse, would need to install and loadorg.Mm.eg.db
). The list of different organism packages are given here.
These materials have been developed by members of the teaching team at the Harvard Chan Bioinformatics Core (HBC). These are open access materials distributed under the terms of the Creative Commons Attribution license (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.