position_shift_stack: Pisition function with some shift

Description Usage Arguments Value Author(s)

View source: R/position-shift.R

Description

Shift stack position function for annotation.

Usage

1
2
3
position_shift_stack(vjust = 1, xshift = NA, yshift = NA, reverse = FALSE)

position_shift_fill(vjust = 1, xshift = NA, yshift = NA, reverse = FALSE)

Arguments

vjust

Vertical adjustment for geoms that have a position (like points or lines), not a dimension (like bars or areas). Set to 0 to align with the bottom, 0.5 for the middle, and 1 (the default) for the top.

xshift, yshift

the offsets on x-axis and y-axis.

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.