position_shift_dodge2: Dodge2 position with some shift

Description Usage Arguments Value Author(s)

View source: R/position-shift.R

Description

Shift dodge2 position function for annotation.

Usage

1
2
3
4
5
6
7
8
position_shift_dodge2(
  width = NULL,
  preserve = c("total", "single"),
  xshift = NA,
  yshift = NA,
  padding = 0.1,
  reverse = FALSE
)

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.

preserve

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

xshift, yshift

the offsets on x-axis and y-axis.

padding

Padding between elements at the same position. Elements are shrunk by this proportion to allow space between them. Defaults to 0.1.

reverse

If TRUE, will reverse the default stacking order. This is useful if you're rotating both the plot and legend.

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.