An interesting submission by John MacKintosh: the calendar heatmap. It shows the value of 10 metrics measured every day during one month! You can find more details concerning these charts on the related blogpost.


Let’s start by making some fake data and loading useful libraries:

We have 10 different columns. One for each metric. And one column for the day. We can arrange it in a tidier format! (with the tidyr package)

Now, let’s add some new column that will be useful to make the chart:

The first plot can be done now:

This plot is fine to compare metrics between them. If we want to see if we have the same kind of pattern for each metric, we can easily do a ‘scaled version’:

Finally, if you want to add text label:

Not what you are looking for ? Make a new search !


Leave a Reply

Notify of