labelPositionY: y-positions for labels

View source: R/main.R

labelPositionYR Documentation

y-positions for labels

Description

alternating y-positions to be used for label placement

Usage

labelPositionY(n, y0 = 0, bandheight = 0.1, group.size = 3, alternating = TRUE)

Arguments

n

number of y-positions to be generated

y0

y-positions around which the generated values will "alternate"

bandheight

height of band "around" (alternating == FALSE) or above (alternating == TRUE) y0 as a fraction of the plot region height (e.g. 0.1 for 10 percent). Default: 0.1

group.size

number of labels that are to be placed in on "group" in which label positions are modified along the y axis

alternating

if TRUE (default) the label positions are alternating between positive and negative values


KWB-R/kwb.plot documentation built on Oct. 2, 2023, 10:16 p.m.