Skip to content

scagnostics

function scagnostics(ldIn, opts?): Scagnostics;

Defined in: scagnostics/index.ts:244

Nine measures of what the scatterplot looks like.

Shape descriptors, not quality measures: they say whether the plot is stringy, clumpy, outlier-ridden and so on, without reference to the data behind it. Use them to characterise a projection, or to compare projections’ visual character — not to decide which is faithful.

outlying, skewed, sparse, clumpy, striated, convex, skinny, stringy, monotonic.

  • Needs: projection only, and it must be 2-dimensional. No labels.
  • Range: each in [0, 1].
  • Cost: O(N log N) — binning caps the work, so it is cheap even for large N.
ParameterType
ldInPointsInput
optsScagnosticsOptions

Scagnostics

import { scagnostics } from "@saehrimnir/sickle";
// 2-D only, and it never looks at the high-dimensional data — these describe
// the shape of the scatterplot itself.
const s = scagnostics(projection);
s.clumpy; // 0.9219 — clearly separated blobs
s.outlying; // 0.1736
s.skinny; // 0.5775