plotnine.position_jitterdodge

position_jitterdodge(
    jitter_width=None, jitter_height=0, dodge_width=0.75, random_state=None
)

Dodge and jitter to minimise overlap

Useful when aligning points generated through geom_point with dodged a geom_boxplot.

Parameters

jitter_width : Optional[float] = None

Proportion to jitter in horizontal direction. If None, 0.4 of the resolution of the data.

jitter_height : float = 0

Proportion to jitter in vertical direction.

dodge_width : float = 0.75

Amount to dodge in horizontal direction.

random_state : Optional[int | np.random.RandomState] = None

Seed or Random number generator to use. If None, then numpy global generator numpy.random is used.