Data Wrangling and Visualization in R
BISC 888-1 Directed Readings at Simon Fraser University
When presenting research "a picture is worth a thousand words", but how do you make that picture as clear and compelling as possible?
The R programming language is predominately known for statistical analysis, but R is also capable of producing publication-quality figures for scientific papers, international newspapers (e.g., The New York Times), and websites.
In addition to its core functionality, sophisticated visualization in R is enhanced by supplemental packages, most notably the
In this course we move beyond basic plotting and highlight some of the more powerful approaches for visualization in R.
Students will learn to rapidly explore their data with the
ggplot2 package and develop highly-customized figures with base graphics functions.
This course will also cover the use of the
reshape2 packages, which are useful tools to format, reshape, and "wrangle" data sets before plotting or analysis.
This course is applicable both to students who have never used R before and those who have used R, but have not accessed its higher-powered data-manipulation and graphing capabilities.
Throughout the course, the exercises and assignments will emphasize reproducible research documentation ("literate programming") in which documentation, code, and figures are combined in the easy-to-learn plain-text language Markdown.
We will meet for 2-hour blocks every 2 weeks. Students will receive 1 course credit, graded pass/fail. The final grade is determined by completion of assignments and attendance. Assignments will be given at the end of each meeting and will be due prior to the following meeting. Attendance is mandatory for a passing grade.
- Bernard Roitberg (faculty supervisor): firstname.lastname@example.org
- Franz Simon email@example.com
- Sean Anderson: firstname.lastname@example.org
- Alex Chubaty: email@example.com
- Corey Phillis: firstname.lastname@example.org
- Based on enrollment (limited to 20 students)
- We will meet for 2-hour sessions bi-weekly for a total of 6 sessions
- Targeted for new and experienced R users
- Learn basic R commands and usage
- Produce high-quality graphics using R base graphics and
- Construct custom figures using
- Learn to manipulate data quickly using
- Begin using Markdown and R together to generate reproducible reports
Before we start
- Introduction to R
- Reproducible documents with Markdown
- R base graphics
- Data manipulation in R:
- R grid graphics (
- Multipanel plotting with base graphics (
- Additional graphics customization (
par, building plots with
- Assignments are due at the start of class
- Assignments are designed to apply the skills learned and practice using R
- All assignments will be written in Markdown format