GeomCount
Count geometry: point marks at unique (x, y) with size scaled by after_stat n (stat sum). Use for overplotting density on discrete or rounded coordinates.
Defaults
- geom
count- default stat
sum- default position
identity- params type
PointParams
Svelte component
import { GGPlot, GeomCount } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x", y: "y" }}>
<GeomCount />
</GGPlot> JSON layer
{
"geom": "count",
"stat": "sum"
} Params
alphanumberPoint opacity. Must be between 0 and 1 (inclusive). Default 1.
sizenumberPoint radius in px. Must be greater than 0. Default 2.5.
shape"circle" | "triangle" | "square" | "diamond" | "plus" | "cross"Point shape. One of "circle", "triangle", "square", "diamond", "plus", "cross". Default "circle".
binsnumberSTAT SUMMARY_BIN ONLY: number of bins (integer ≥ 1). Default 30 — advisory. Overridden by binwidth.
binwidthnumberSTAT SUMMARY_BIN ONLY: bin width in data units (must be greater than 0). Takes precedence over bins.
boundarynumberSTAT SUMMARY_BIN ONLY: align a bin EDGE with this x value. Mutually exclusive with center.
centernumberSTAT SUMMARY_BIN ONLY: align a bin CENTER with this x value. Mutually exclusive with boundary.
closed"right" | "left"STAT SUMMARY_BIN ONLY: which edge of each bin is inclusive: "right" (default) or "left".
fun"first" | "last" | "mean" | "median" | "min" | "max" | "sum"SUMMARY_BIN center fun (mean/median/sum;) or MANUAL named transform (first|last|mean|median|min|max|sum;). Required when stat is "manual".
funMinSummaryFunSTAT SUMMARY_BIN ONLY: lower bound summary (ymin).
funMaxSummaryFunSTAT SUMMARY_BIN ONLY: upper bound summary (ymax).
Allowed stats
sumdefault