position_jitterdodged: Simultaneously dodge and jitter

View source: R/geom_jitterd.R

position_jitterdodgedR Documentation

Simultaneously dodge and jitter

Description

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

Usage

position_jitterdodged(
  jitter.width = 0.2,
  jitter.height = 0,
  dodge.width = 0.75,
  seed = NA
)

Arguments

jitter.width

degree of jitter in x direction. Defaults to 40% of the resolution of the data.

jitter.height

degree of jitter in y direction. Defaults to 0.

dodge.width

The degree of dodging

seed

Random seed.

Value

a geom of jittered data

See Also

Other position adjustments: position_jitterd()


dustinfife/flexplot documentation built on Sept. 23, 2024, 9:01 p.m.