stat: "summary"

Collapse each discrete-x group to one summary (default mean ± se). Publishes y, ymin, ymax for error-style geoms.

Usage

import { GGPlot, GeomErrorbar } from "@ggsvelte/svelte";

<GGPlot data={rows} aes={{ x: "x", y: "y" }}>
  <GeomErrorbar stat="summary" />
</GGPlot>
{
  "geom": "errorbar",
  "stat": "summary"
}

Generated columns (after_stat)

Resolve these with channel objects such as { stat: "y" } in aes.

  • y
  • ymin
  • ymax

Default for geoms

No geom uses this as its default stat. Set it explicitly when needed.

Compatible geoms

Examples

← All stats · Geoms · Statistics and positions