GeomVline
Vertical reference-line alias. Canonicalized by normalize() to a rule layer. Annotation form: set params.xintercept. Data-driven form: map aes.x (inherited plot y is dropped so the one-axis rule contract holds).

Defaults
- geom
vline- default stat
identity- default position
identity- params type
VlineParams
Alias
normalize() rewrites this geom to rule (with this alias's default stat and position). Prefer the canonical geom in
new code.
Svelte component
import { GGPlot, GeomVline } from "@ggts-sh/svelte";
<GGPlot data={rows}>
<GeomVline />
</GGPlot> JSON layer
{
"geom": "vline"
} Params
xinterceptRuleInterceptANNOTATION FORM ONLY: draw a vertical rule at each of these fixed x positions. Mutually exclusive with mapping aes.x on this layer.
alphanumberRule opacity. Must be between 0 and 1 (inclusive). Default 1.
linewidthnumberStroke width in px. Must be greater than 0. Default 1.
linetype"solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash"Constant stroke pattern, as in geom_hline(linetype = "dashed"). One of "solid", "dashed", "dotted", "dotdash", "longdash", "twodash". Default "solid". A constant aes.linetype wins over this param.
strokePaintGradientPaintWithin-mark gradient stroke paint (not a data scale). Requires a solid fallback.
glowGlowSpecBounded within-mark glow treatment (not theme decoration).
Allowed stats
identitydefault
Allowed positions
identitydefault