block by martgnz ce9e9fe9904c3f2024f53e33eab8502d

Scatterplot with convex hulls

Full Screen

Convex hulls can be useful for grouping points on a scatterplot. For example they can be used to group countries by continents if they are close to each other, or, in this case, to group different flower species and reinforce the effect of the fill.

Implemented with d3.polygonHull.

If you use ggplot2 the package ggalt implements geom_encircle, a geometry that achieves the same result.

Some examples:

index.html

data.tsv