Qu

spiderplot

Builtin index · Plotting

spiderplot(values) / spiderplot(v1, v2, ...)

Input: values · Output: no output

What it is

Radar chart; each argument (a Vec of numbers, one value per spoke/category) becomes its own series, layered onto the current panel's spider chart (repeated calls add more series). Category axis labels aren't wired up yet — spokes are unlabeled.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
spiderplot(values) / spiderplot(v1, v2, ...)
values Vec or numbernot documented yet
no outputRadar chart; each argument (a Vec of numbers, one value per spoke/category) becomes its own series, layered onto the current panel's spider chart (repeated calls add more series). Category axis labels aren't wired up yet — spokes are unlabeled.

Examples

From the documentation, and run by the build -- the output and the figure below are what the engine actually produced. Simplest first.

figure()
splineplot([0, 1, 2, 3, 4], [0, 2, 1, 3, 2])
figure()
pwl([0, 1, 2, 3, 4, 5, 6], [0, 1, 1.5, 3, 3.2, 3.5, 5])
figure()
spiderplot([3, 4, 2, 5, 4])
figure()
raincloud(randn(60, seed = 6), randn(60, seed = 7))
-4 -3 -2 -1 0 1 2 3 4 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6

from plotting

How it works

spiderplot(values) / spiderplot(v1, v2, ...) -- a radar chart; each call's arguments become one series each, added to whatever spider chart already lives on the current panel (so repeated calls layer more series, matching hold-on semantics). unlabeled spokes for now.

From the note above this builtin in the interpreter, where the reasoning was written down as it was built.