positionJitter

fun positionJitter(width: Number? = null, height: Number? = null, seed: Int? = null): PosOptions

Adjusts position by assigning random noise to points. Better for discrete values.

Examples

Parameters

width

Jittering width. The value of width is relative and typically ranges between 0 and 0.5. Values that are greater than 0.5 lead to overlapping of the points.

height

Jittering height. The value of height is relative and typically ranges between 0 and 0.5. Values that are greater than 0.5 lead to overlapping of the points.

seed

A random seed to make the jitter reproducible. If null (the default value), the seed is initialised with a random value.