stat: "ydensity"

Kernel density along y for violin shapes. Publishes density, count, scaled, violinwidth, and y; default for geom_violin.

Usage

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

<GGPlot data={rows} aes={{ x: "x", y: "y" }}>
  <GeomViolin stat="ydensity" />
</GGPlot>
{
  "geom": "violin",
  "stat": "ydensity"
}

Generated columns (after_stat)

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

  • density
  • count
  • scaled
  • violinwidth
  • y

Default for geoms

Compatible geoms

← All stats · Geoms · Statistics and positions