stat: "sf"

Simple-features geometry expansion for geom_sf: multiparts and holes become drawable rings without after_stat columns.

Usage

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

<GGPlot data={rows} aes={{ x: "x", y: "y" }}>
  <GeomSf stat="sf" />
</GGPlot>
{
  "geom": "sf",
  "stat": "sf"
}

Generated columns (after_stat)

This stat does not publish named after_stat columns in STAT_COLUMNS. It may still rewrite positions or filter rows; map aesthetics to data fields as usual.

Default for geoms

Compatible geoms

Examples

← All stats · Geoms · Statistics and positions