Group Abstract Group Abstract

Message Boards Message Boards

It's Ridiculously Cold Outside. Let's Graph It.

Posted 9 years ago
POSTED BY: Sean Clarke
3 Replies

Very nice!!! We have a colder summer start, but if it follows the same as last summer, it will be warmer soon:

enter image description here

Note: I'm using Celsius.

Being from Rochester, NY, I'm partial to those values.

enter image description here

But, I find that lacking as it does not give a sense of the size of the data sets being used. To give a better sense of the history, I like to plot the other years as faded in the background behind the current year. So, we first need to modify the data a bit

tempsByYear = GroupBy[temps, #[[1, 1]] &];

which we can then use in DateListPlot

allData =
 DateListPlot[
  KeyValueMap[Tooltip[#2, #1] &, tempsByYear], 
  PlotStyle -> ({Opacity[
        If[# == 65, 1, 0.4 (#/Length[tempsByYear])^35 + 0.02]], 
       Darker@Red} & /@ Range[Length[tempsByYear]]), 
  DateFunction -> ({2016}~Join~Rest[#] &)];

where I added a Tooltip and used DateFunction to push everything into a common year. When combined with the background, as before, you get

enter image description here

POSTED BY: Robert Collyer

enter image description here - you have earned "Featured Contributor" badge, congratulations !

This is a great post and it has been selected for the curated Staff Picks group. Your profile is now distinguished by a "Featured Contributor" badge and displayed on the "Featured Contributor" board.

POSTED BY: EDITORIAL BOARD
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard