position_quasirandom: Arrange points using quasirandom noise to avoid overplotting

View source: R/position-quasirandom.R

position_quasirandomR Documentation

Arrange points using quasirandom noise to avoid overplotting

Description

Arrange points using quasirandom noise to avoid overplotting

Usage

position_quasirandom(
  method = "quasirandom",
  width = NULL,
  varwidth = FALSE,
  bandwidth = 0.5,
  nbins = NULL,
  dodge.width = 0,
  orientation = NULL,
  groupOnX = NULL,
  na.rm = FALSE
)

Arguments

method

Method used for distributing points. Options are "quasirandom" (default), "pseudorandom", "smiley", "maxout", "frowney", "minout", "tukey", "tukeyDense". See vipor::offsetSingleGroup() for the details of each method.

width

Maximum amount of spread (default: 0.4)

varwidth

Vary the width by the relative size of each group. (default: FALSE)

bandwidth

the bandwidth adjustment to use when calculating density Smaller numbers (< 1) produce a tighter "fit". (default: 0.5)

nbins

the number of bins used when calculating density (has little effect with quasirandom/random distribution)

dodge.width

Amount by which points from different aesthetic groups will be dodged. This requires that one of the aesthetics is a factor. To disable dodging between groups, set this to NULL. (default: 0)

orientation

The orientation (i.e., which axis to group on) is inferred from the data. This can be overridden by setting orientation to either "x" or "y".

groupOnX

[Superseded] See orientation.

na.rm

if FALSE (default), missing values are removed with a warning. If TRUE, missing values are silently removed.

See Also

vipor::offsetSingleGroup(), geom_quasirandom()

Other position adjustments: offset_beeswarm(), position_beeswarm()


eclarke/ggbeeswarm documentation built on Nov. 16, 2024, 5:26 p.m.