Gallery / Points & scatter
point
Overlapping points sized by how many share a cell
Count stat on points when discrete rounding collapses many rows onto few coordinates.
Source
Svelte, builder, JSON
<script lang="ts">
import {
GeomCount,
GGPlot,
Inspect,
Labs,
ThemeClassic,
} from "@ggts-sh/svelte";
import { galtonHeights } from "./data.js";
</script>
<GGPlot
data={galtonHeights}
aes={{ x: "parent", y: "child" }}
width={640}
height={400}
>
<GeomCount alpha={0.7} />
<ThemeClassic />
<Labs
title="Overlapping points sized by how many share a cell"
subtitle="Heights to the nearest inch"
x="Mid-parent height (inches)"
y="Child height (inches)"
size="Children"
/>
<Inspect mode="exact" pin />
</GGPlot>
Meta
Details
- Family
- Points & scatter
- Source
point/count- Rendering
- SVG
- Techniques


