Session Ready
Exercise

Remixing a plot

You find the relationship between the latitude of a farmer's market and the number of months the market was open fascinating. Intuitively as one gets further South, the growing seasons are longer, and thus the markets can stay open longer. To visualize this story, you summarize the market data at the state level and draw a heatmap with columns corresponding to the duration the markets are open. Each row in the heatmap shows the distribution of the market "season" for a state and rows are sorted in descending order of the state's latitude.

heatmap

The default heatmap leaves a lot to be desired. Decrease the font size to allow each state name to fit without overlap. The dark color palette also clashes with the light background, and the colorbar doesn't help the reader as the point is relative comparisons.

Instructions
100 XP
  • Decrease the font size to 85% of the default to un-crowd state names.
  • Make new color palette that goes from 'white' to 'steelblue'.
  • Replace the default palette with the newly created one.
  • Remove the continuous color bar legend drawn next to heatmap.