On this page

Geoms

49 geoms

All geoms

Shared layer props

Every geom shell accepts these props in addition to its own params. On the JSON layer they are top-level fields next to geom.

data

DataInput | readonly Record<string, unknown>[]

Optional layer-local data. When omitted, the layer inherits plot-level data. Inline rows, inline columns, or a named dataset.

aes

Aes

Optional aesthetic mapping for this layer. Merges over plot-level aes; set a channel to null to unset an inherited mapping.

stat

StatName (geom-specific)

Statistical transform applied before drawing. Omit to use the geom default (see defaultStat). Only values listed in allowedStats validate.

position

PositionName (geom-specific)

Position adjustment for how marks share coordinate space. Omit to use the geom default. Only values listed in allowedPositions validate.

positionParams

PositionParams

Parameters for jitter (width, height, seed) or nudge (x, y). Valid only when the layer allows those positions.

render

"svg" | "canvas" | "auto"

Optional per-layer render backend override. When omitted, the plot chooses.

inspect

false

Set false to exclude this layer from inspection: its marks never become tooltip, hover, or keyboard-traversal candidates. For decorative layers whose marks would otherwise capture the pointer.