plotnine.position_jitter

position_jitter(width=None, height=None, random_state=None)

Jitter points to avoid overplotting

Parameters

width : Optional[float] = None

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

height : Optional[float] = None

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

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.