Packs
A pack is a named collection of ready-made constructs — a normal distribution, a boxplot lane, a dataset — written once and imported by name. Its constructs are called under that name, so you can always see where one came from, and its attributes are typed, so a value it cannot accept is an error where you wrote it rather than a surprise in the drawing.
Using a pack
Import it once, near the top of your internote, then call its constructs with the pack's name in front. Nothing else in your document changes, and what a pack draws is ordinary chalk — the same nodes you would have written by hand.
@use:statistics
canvas.graph{
statistics.normal(mu: 0; sigma: 1)
statistics.mean-marker:0()
}(
x domain: [-4, 4]
y domain: [0, 0.45]
)A pack's datasets are reached the same way, through the pack's name: #statistics.anscombe.y1. Only what a pack lists as public can be reached at all — the rest is its own workings.
Available packs
- statistics26 constructsThe normal density , drawn across four standard deviations either side of the mean.