plotnine.positions.position_jitterdodge¶
- class plotnine.positions.position_jitterdodge(jitter_width=None, jitter_height=0, dodge_width=0.75, random_state=None)[source]¶
Dodge and jitter to minimise overlap
Useful when aligning points generated through
geom_point
with dodged ageom_boxplot
.- Parameters:
- jitter_width
float
Proportion to jitter in horizontal direction. Default is
0.4
of the resolution of the data.- jitter_height
float
Proportion to jitter in vertical direction. Default is
0.0
of the resolution of the data.- dodge_width
float
Amount to dodge in horizontal direction. Default is
0.75
- random_state
int
orRandomState
, optional Seed or Random number generator to use. If
None
, then numpy global generatornumpy.random
is used.
- jitter_width