Squiggle logoSquiggle
API

Plot

The Plot module provides functions to create plots of distributions and functions.

Raw functions and distributions are plotted with default parameters, while plot objects created by functions from this module give you more control over chart parameters and access to more complex charts.

dist

Signatures
Plot.dist(Dist, {xScale?: Scale, yScale?: Scale, showSummary?: Bool}?) => Plot
Examples

dists

Signatures
Plot.dists(List(Dist|Number)|List({name?: String, value: Dist|Number}), {xScale?: Scale, yScale?: Scale, showSummary?: Bool}?) => Plot
Examples

numericFn

Signatures
Plot.numericFn((Number) => Number, {xScale?: Scale, yScale?: Scale, xPoints?: List(Number)}?) => Plot
Examples

distFn

Signatures
Plot.distFn((Number) => Dist, {xScale?: Scale, yScale?: Scale, distXScale?: Scale, xPoints?: List(Number)}?) => Plot
Examples

scatter

Signatures
Plot.scatter({xDist: SampleSetDist, yDist: SampleSetDist, xScale?: Scale, yScale?: Scale}) => Plot
Examples

On this page