positionJitterDodge

fun positionJitterDodge(dodgeWidth: Number? = null, jitterWidth: Number? = null, jitterHeight: Number? = null, seed: Int? = null): PosOptions

This is primarily used for aligning points generated through geomPoint() with dodged boxplots (e.g., a geomBoxplot() with a fill aesthetic supplied).

Parameters

dodgeWidth

Bin width. The value is relative and typically ranges between 0 and 1. Values of dodgeWidth that are greater than 1 lead to overlapping of the objects.

jitterWidth

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

jitterHeight

Jittering height. The value of jitterHeight 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.