position: "dodge"

Place groups side by side within each x band instead of overlapping. Default for boxplot and violin; used when comparing categories at the same x.

Usage

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

<GGPlot data={rows} aes={{ x: "x", y: "y" }}>
  <GeomBoxplot position="dodge" />
</GGPlot>
{
  "geom": "boxplot",
  "position": "dodge"
}

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