Penguin Trait Explorer (Brushed Scatterplots)
Linked D3 scatterplots with species color, bidirectional brushing, and detail-on-click.
Penguin Trait Explorer (Brushed Scatterplots)
Overview
How to Use
- Explore two scatterplots:
- Plot 1: Bill Length vs. Bill Depth
- Plot 2: Flipper Length vs. Body Mass
Color = Species: Each species has its own color to distinguish groups.
Brush to filter: Drag a rectangle on either plot to highlight points in that area. You can resize or drag the existing brush to move it. You can brush on both plots; only points inside all active brushes remain highlighted.
Select a penguin: Click any point to view its measurements (bill, flipper, body mass, species) in the info table. The selected point enlarges in both plots.
Move brushes to compare: Slide a brush around to see how different regions correspond across the two trait spaces.
Reset brushes: Click on empty space (or clear the brush) to remove it and restore all points.
- Compare subsets: Use brushing to isolate a cluster (e.g., large flipper + high mass) and see where those same penguins appear in the other plot.
This post is licensed under CC BY 4.0 by the author.