Week 9 Lab: Let’s get visual
Introduction
So far, we’ve mostly built graphs for our own purposes of looking at data and understanding patterns. For example, we can better understand the prices of homes in a city by plotting their distribution as a histogram. We can get a finer understanding of factors contributing to that distribution by separating the data by categories like education, income level, or race and looking at home prices in those categories as boxplots. Here, the choices we make are determined largely by the kind of data we have and the kind of patterning we want to see.
However, visualization is not limited to making data visible to us, the data scientists, but is also used for presenting data in a way that facilitates and encourages engagement from others. Different color choices may better clarify trends across a dataset. Different emphasis
ggplot2 and additional packages offer ways to change the look and feel of a graph in many ways that can help us to better communicate our ideas.
In this lab, we will work on ways to control the visual appearance of graphs in order to achieve different goals.