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

quantiles

Array<number>

Conditional quantiles of y to fit and draw. Each entry must be in (0, 1). Default [0.25, 0.5, 0.75].

n

number

Number of evaluation points along x (integer 2–5000). Default 80. Linear fits need only endpoints; denser grids help nonlinear coords.

linewidth

number

Stroke width of quantile lines in px. Must be greater than 0. Default 1.

alpha

number

Line opacity. Must be between 0 and 1 (inclusive). Default 1.

strokePaint

GradientPaint

Within-mark gradient stroke paint for quantile lines (not a data scale).

glow

GlowSpec

Bounded within-mark glow treatment (not theme decoration).

Allowed stats

Allowed positions

Examples

← All geoms · Getting started