stat: "sf_coordinates"

Label anchors from SF geometries for geom_sf_text and geom_sf_label (one point per feature or part).

Usage

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

<GGPlot data={rows} aes={{ x: "x", y: "y" }}>
  <GeomSfText stat="sf_coordinates" />
</GGPlot>
{
  "geom": "sf_text",
  "stat": "sf_coordinates"
}

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

← All stats · Geoms · Statistics and positions