scale-linetype-continuous
Continuous linetype scale: alias of scale-linetype-binned with the default bin count. Provided as an explicit-name alias.
Usage
scale-linetype-continuous(
name: none,
palette: auto,
limits: none,
labels: auto,
)Parameters
| Parameter | Default | Description |
|---|---|---|
name |
none |
Legend title. |
palette |
auto |
Array of dash keywords, or auto. |
limits |
none |
Continuous (lo, hi) pair, or none. |
labels |
auto |
Array of legend labels, or auto. |
Returns
Scale object consumed by plot.
Examples
Map a numeric column onto a dash interpolation across four default bins.
#let d = range(1, 13).map(i => (x: i, y: i, q: i))
#plot(
data: d,
mapping: aes(x: "x", y: "y", linetype: "q", group: "q"),
layers: (geom-line(stroke: 1pt),),
scales: (scale-linetype-continuous(),),
width: 10cm,
height: 6cm,
)