Discover more from Daily Dose of Data Science
A Simple Trick That Will Make Heatmaps More Elegant
Embedding the size component to a heatmap.
Heatmaps often make data analysis much easier. Yet, they can be further enriched with a simple modification.
A traditional heatmap represents the values using a color scale. Yet, mapping the cell color to numbers is still challenging.
Embedding a size component can be extremely helpful in such cases. In essence, the bigger the size, the higher the absolute value.
This is especially useful to make heatmaps cleaner, as many values nearer to zero will immediately shrink.
In fact, you can represent the size with any other shape. Below, I created the same heatmap using a circle instead:
Find the code for this post here: GitHub.
Thanks for reading Daily Dose of Data Science! Subscribe for free to learn something new and insightful about Python and Data Science every day. Also, get a Free Data Science PDF (550+ pages) with 320+ tips.
👉 If you liked this post, don’t forget to leave a like ❤️. It helps more people discover this newsletter on Substack and tells me that you appreciate reading these daily insights.
The button is located towards the bottom of this email.
Thanks for reading!
Latest full articles
If you’re not a full subscriber, here’s what you missed last month:
To receive all full articles and support the Daily Dose of Data Science, consider subscribing:
👉 Tell the world what makes this newsletter special for you by leaving a review here :)
👉 If you love reading this newsletter, feel free to share it with friends!