Simple Heatmap in R with ggplot2
Heatmaps are an easy way to look at data when you have a lot. Â The heatmap below is from a 30 day traffic count. Â You can easily and quickly see that peaks in the morning are northbound, peaks in the afternoon are southbound, and peaks on the weekend are in the midday.
There isn’t a ton of code needed to do this:
This method could be used with shorter-term data with fewer steps. Â I used this 30-day count because it tells more of a story than a two or three day count.
Tags: count data, ggplot, ggplot2, heatmap, R, visualization
You must be logged in to post a comment.