position_shift_dodge: Dodge position with some shift

Description Usage Arguments Value Author(s)

View source: R/position-shift.R

Description

Shift dodge position function for annotation.

Usage

1
2
3
4
5
6
position_shift_dodge(
  width = NULL,
  xshift = NA,
  yshift = NA,
  preserve = c("total", "single")
)

Arguments

width

Dodging width, when different to the width of the individual elements. This is useful when you want to align narrow geoms with wider geoms. See the examples.

xshift, yshift

the offsets on x-axis and y-axis.

preserve

Should dodging preserve the total width of all elements at a position, or the width of a single element?

Value

a position object.

Author(s)

Houyun Huang, Lei Zhou, Jian Chen, Taiyun Wei


houyunhuang/ggcor documentation built on July 22, 2020, 8:31 p.m.