stat: "bin"
Bin continuous x into histogram breaks. Publishes count, density, ncount, and ndensity; default for histogram and freqpoly.
Usage
import { GGPlot, GeomHistogram } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x" }}>
<GeomHistogram stat="bin" />
</GGPlot> {
"geom": "histogram",
"stat": "bin"
} Generated columns (after_stat)
Resolve these with channel objects such as { stat: "count" } in aes.
countdensityncountndensity
Default for geoms
Compatible geoms
GeomLineGeomBarGeomHistogramdefaultGeomFreqpolydefault