stat: "density_2d"

Bivariate KDE with isolines. Publishes level and density; default for geom_density_2d.

Usage

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

<GGPlot data={rows} aes={{ x: "x", y: "y" }}>
  <GeomDensity2d stat="density_2d" />
</GGPlot>
{
  "geom": "density_2d",
  "stat": "density_2d"
}

Generated columns (after_stat)

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

  • level
  • density

Default for geoms

Compatible geoms

Examples

← All stats · Geoms · Statistics and positions