Skip to content

Commit 7203edf

Browse files
author
Danielle Quinn
authored
describe dif strategies used by position_dodge and position_dodge2 (tidyverse#3784)
* attempted to clarify language here * updated documentation
1 parent c0ebe96 commit 7203edf

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

R/position-dodge.r

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
#' Dodge overlapping objects side-to-side
22
#'
33
#' Dodging preserves the vertical position of an geom while adjusting the
4-
#' horizontal position. `position_dodge2` is a special case of `position_dodge`
5-
#' for arranging box plots, which can have variable widths. `position_dodge2`
6-
#' also works with bars and rectangles. But unlike `position_dodge`,
4+
#' horizontal position. `position_dodge` requires the grouping variable to be
5+
#' be specified in the global or `geom_*` layer. Unlike `position_dodge`,
76
#' `position_dodge2` works without a grouping variable in a layer.
7+
#' `position_dodge2` works with bars and rectangles, but is
8+
#' particulary useful for arranging box plots, which
9+
#' can have variable widths.
810
#'
911
#' @param width Dodging width, when different to the width of the individual
1012
#' elements. This is useful when you want to align narrow geoms with wider

man/position_dodge.Rd

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)