Last chance! 50% off unlimited learning
Sale ends in
Spread points out horizontally so that, in dot plot of quantitative response in multiple categories, the separate points can be seen.
jiggle(
group,
y,
method = c("random", "fixed"),
hnum = 35,
vnum = 40,
maxvalue = 0.45
)
Categorical variable defining group; can be a factor, character, or numeric vector
Vector of quantitative responses
What method to use for horizontal jiggling.
Number of horizontal bins for the jiggling.
Number of vertical bins for the jiggling.
Maximum value in the results; results will be scaled to this value.
Use NULL
to not scale.
Numeric vector with amounts to jiggle the points horizontally
The "random"
method is similar to
base::jitter()
but with amount of jiggling proportional
to the number of nearby points. The "fixed"
method is
similar to the beeswarm package