scale-shape-identity
Shape scale that uses each row’s value as the marker keyword directly.
The mapped column must contain shape keywords accepted by geom-point ("circle", "square", "triangle", "diamond", "cross", "x", "star", "triangle-down").
Usage
scale-shape-identity(
name: none,
)Parameters
| Parameter | Default | Description |
|---|---|---|
name |
none |
Legend title. Identity scales draw no legend. |
Returns
Scale object consumed by plot.
Examples
Per-row shape keyword carried straight through to the marker.
#let d = (
(x: 1, y: 2, sh: "circle"),
(x: 2, y: 4, sh: "triangle"),
(x: 3, y: 3, sh: "diamond"),
)
#plot(
data: d,
mapping: aes(x: "x", y: "y", shape: "sh"),
layers: (geom-point(size: 4pt),),
scales: (scale-shape-identity(),),
width: 10cm,
height: 6cm,
)