Homework 8

This homework assignment uses the Bigfoot dataset !


Plot 1: Scatterplot visualizing the relationship between low temperatures and dew point with humidity

Plot 2: Scatterplot visualizing the relationship between high temperatures and dew point by season and state

Write Up

For this assignment, I created two visualizations displaying variables from the bigfoot dataset, which we used earlier in the semester. In contrast to homework 7, I decided to switch from the buildings dataset to the bigfoot one because the latter had a larger number of interesting quantitative variables.

The first plot highlights the relationship between lowest temperature readings and dew point along with a color scale showing humidity levels. For this plot I was able to apply similar methods from homework 7 while creating a scatterplot instead. This plot was relatively easy to build and I spent most of my time figuring out how to change axes ranges and add the standard interactive pan/zoom features. Using vega-lite example graphs and documentation, I was able to implement these features with a blue color scale.

The second plot displays the correlation between highest temperature readings and dewpoint categorized by the four seasons and the 10 states with the most bigfoot observations in the dataset. This interactive plot was more challenging to implement because I had to spend more time figuring out which selection tool to use and how to input element binding. Since I was dealing with categorical variables like ‘state’ and ‘season’, I decided to follow one of the examples on the vega-lite documentation but I changed the range slider to a dropdown menu. The resulting plot allows users to view all the points by color-coded seasons and then select a specific state and season combination, which greys out all other points.