About this workshop

The workshop is broken up into 4 parts:

You’ll need to install the following packages to do this workshop: ggplot2, tidyverse, Rmarkdown, and reshape2.

Copy and paste the following lines of code into your R console to download them all at once.

reqs <- c("tidyverse", "rmarkdown", "nycflights13")
missing_packages <- reqs[!(reqs %in% installed.packages()[, "Package"])]
if(length(new.packages)) {
  install.packages(missing_packages)
}
## Error in install.packages : no packages were specified

Why R?

There are several programming languages out there, and they’re all ultimately capable of doing whatever your goal is. That being said, here are some reasons why you might choose to learn R:

  • R seems to be the language of choice for statistical modeling and analysis.
  • Creating pretty graphs is relatively straightforward with ggplot2
  • RStudio is an excellent IDE and is constantly being updated and bug-fixed.
  • The biggest draw for me is the community support. R actively fosters a community of supportive people that you can turn to for help.
  • Another benefit of this large community is that there are tons of packages for you to use. If you need to perform a specific task, there is likely an R package that can do it for you.

Let’s get started!

Next section: R basics



Paul Villanueva
Ph.D. Student - Bioinformatics and Computational Biology
Iowa State University, Ames, IA.