Week 5 (November 6 - 12)

Being able to create visualizations (graphical representations) of data is a key step in data analysis. In this module you will learn to use the ggplot2 library to visualize your data. As illustrated in week 2, R does provide built-in plotting functions; however, the ggplot2 library implements what is known as the Grammar of Graphics. This makes it particularly effective for describing how visualizations should represent data, and has turned it into the preeminent plotting library in R.


The following tutorials will provide you the knowledge and skills required to create the meaningful, elegant, and finely tuned data visualizations that I will be looking for in your final project.

  1. Introduction to ggplot2: Read and work through Chapter 3: Data Visualization in R for Data Science to get an introduction to the ggplot2 package.
  2. Advancing your visualizations: In your final project I will be looking for publication worthy visualizations. Thus, I fully expect your visualizations to improve with each deliverable submitted. Therefore it is essential that you learn how to use some of the more advanced features of ggplot2 and other packages that work with ggplot2. Here are some resources to help you take your visualizations to the next level:

Class

Please download this material for Saturday’s:  

In addition, be sure to bring your final project data to class because you will work on it during class. Furthermore, identify at least 10 specific questions you want to ask of your project data. Using what you learned this week, what type of visualizations can you apply to help answer these questions? Be ready to use ggplot2 to answer these questions in class.