GeomQuantile
Quantile geometry: linear quantile regression lines (y ~ x) at one or more conditional quantiles of y, one line per quantile per group.
Defaults
- geom
quantile- default stat
quantile- default position
identity- params type
QuantileParams
Svelte component
import { GGPlot, GeomQuantile } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x", y: "y" }}>
<GeomQuantile />
</GGPlot> JSON layer
{
"geom": "quantile",
"stat": "quantile"
} Params
quantilesArray<number>Conditional quantiles of y to fit and draw. Each entry must be in (0, 1). Default [0.25, 0.5, 0.75].
nnumberNumber of evaluation points along x (integer 2–5000). Default 80. Linear fits need only endpoints; denser grids help nonlinear coords.
linewidthnumberStroke width of quantile lines in px. Must be greater than 0. Default 1.
alphanumberLine opacity. Must be between 0 and 1 (inclusive). Default 1.
strokePaintGradientPaintWithin-mark gradient stroke paint for quantile lines (not a data scale).
glowGlowSpecBounded within-mark glow treatment (not theme decoration).
Allowed stats
quantiledefault
Allowed positions
identitydefault