addLabels: Add Labels

View source: R/main.R

addLabelsR Documentation

Add Labels

Description

add labels at given x-positions to plot (with alternating y positions to avoid overlapping labels)

Usage

addLabels(
  x,
  labels = as.character(x),
  y0 = 0,
  bandheight = 0.1,
  col = "black",
  group.size = 3,
  alternating = FALSE,
  col.line = "black",
  lty = 1,
  lty.horiz.line = 0,
  adj = -0.1,
  cex = 0.7
)

Arguments

x

x positions of the labels

labels

vector of character containing the labels

y0

base y position of the labels

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

col

colour of the labels

group.size

passed to labelPositionY

alternating

passed to labelPositionY

col.line

colour of the lines to the labels

lty

type of the lines to the labels (as defined in par)

lty.horiz.line

type of the horizontal line (as defined in par)

adj

passed to text

cex

passed to text


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