position: "identity"

Leave mark coordinates unchanged. Default for most geoms: each mark keeps its post-stat (x, y).

Usage

import { GGPlot, GeomPoint } from "@ggsvelte/svelte";

<GGPlot data={rows} aes={{ x: "x", y: "y" }}>
  <GeomPoint position="identity" />
</GGPlot>
{
  "geom": "point",
  "position": "identity"
}

positionParams

This position has no positionParams. Only jitter (width, height, seed) and nudge (x, y) accept parameters.

Default for geoms

Compatible geoms

Examples

← All positions · Geoms · Stats