stat: "function"
Evaluate a pure function on an x grid. Publishes y; default for geom_function when no data rows drive the mark.
Usage
import { GGPlot, GeomFunction } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x", y: "y" }}>
<GeomFunction stat="function" />
</GGPlot> {
"geom": "function",
"stat": "function"
} Generated columns (after_stat)
Resolve these with channel objects such as { stat: "y" } in aes.
y
Default for geoms
Compatible geoms
GeomFunctiondefault