Week 5 (April 1-7)

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 to properly communicate your visual findings. Here are some resources to help you take your visualizations to the next level:


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.