GeomRaster
Raster geometry: equal-cell grid at (x, y) with fill; optimized dense heatmaps without per-cell strokes. Irregular spacing warns and suggests geom tile.
Defaults
- geom
raster- default stat
identity- default position
identity- params type
RasterParams
Svelte component
import { GGPlot, GeomRaster } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x", y: "y" }}>
<GeomRaster />
</GGPlot> JSON layer
{
"geom": "raster"
} Params
alphanumberRaster opacity. Must be between 0 and 1 (inclusive). Default 1.
hjustnumberHorizontal justification of each cell over its x center (0–1). Default 0.5.
vjustnumberVertical justification of each cell over its y center (0–1). Default 0.5.
interpolatebooleanInterpolation between cells. Only false (nearest / no interpolation) is supported.
Allowed stats
identitydefault
Allowed positions
identitydefault