β β If you want to get better at data visualization, thereβs only one way: practice. And thatβs exactly what this course is about.
You'll tackle dozens of exercises and work with real-life datasets at the end of each module to apply what youβve learned.
Hereβs just a glimpse of the plots shared by students in the Discord channel to get feedback on both code and design!
β
β
β Ok, back on the main topic π
β
What is a Venn diagram?
A Venn diagram visualizes relationships between sets using overlapping circles to show shared and unique elements.
It typically looks like this:
β
Venn diagrams work well for 2 or 3 groups! But beyond that, they become unreadable. β The issue is combinatorial explosion: the number of combinations grows way too fast. β With more than three groups, the diagram quickly becomes a cluttered mess, making it impossible to extract meaningful insights: β β
β
β
A better option: Upset Plot
The UpSet Plot is a powerful alternative that scales well with many groups.
It has a bar chart at the top that shows the size of each group combination. Then the X-axis grid indicates which groups contribute to each bar.
It's much clearer than a cluttered Venn diagram! Take a moment to study the figure:
β
β
Origin & Implementation
The UpSet plot was introduced in 2014 and quickly gained traction. β You can build it using one of those tools:
In R, use the {upsetR} package to build one. I even wrote an example in the R Graph Gallery.
In Python, thereβs the UpSetPlot package (though I havenβt used it personally).
In JavaScript, you can use upsetjs.
β ~~~
β
And that's it for today!
I hope you discovered a new chart type and more importantly, that you'll get to use it someday! βΊοΈ
Before I go, hereβs one of the latest testimonials for Matplotlib Journey I got. I hope it can motivate you to join the course in the remaining 48h! β