ScaleSizeBinnedArea

Binned size scale with area mapping (zero maps to zero area).

Defaults

helper
scaleSizeBinnedArea
family
numeric-style
aesthetic
size
scale type
binned
options type
SizeAreaScaleOptions

Svelte component

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

<GGPlot data={rows} aes={{ x: "x", y: "y", size: "weight" }}>
  <ScaleSizeBinnedArea />
  <GeomPoint />
</GGPlot>

JSON scales

{
  "scales": {
    "size": {
      "type": "binned"
    }
  }
}

Params

domain

Array<DomainValue>

Explicit semantic domain. Continuous scales use [min, max]; ordinal uses ordered values.

breaks

Array<number | string>

Explicit reference ticks or bin boundaries in data units.

range

Array<number>

Explicit output range for the mapped aesthetic.

reverse

boolean

Reverse the scale's output direction. Default false.

oob

"censor" | "squish"

Out-of-bounds policy for values outside an explicit domain: "censor" (default) or "squish".

naValue

number

Replacement for missing/null source values.

unknownValue

number

Replacement for invalid, out-of-domain, or unmapped values.

labels

string

Guide label format string (numeric or temporal).

guide

GuideSpec

Guide presentation override (legend, colorbar, colorsteps, or none).

maxSize

number

Maximum area-mapped size (ggplot2 scale_size_area max_size).

Guide interaction

Legend guide for the mapped style channel. Set guide: "none" to hide.

Examples

← All scales · Palettes · Scales and guides