thlAnnotate: Add annotations to the plot

View source: R/thlAnnotate.R

thlAnnotateR Documentation

Add annotations to the plot

Description

Add annotations to the plot

Usage

thlAnnotate(
  type = c("box", "label"),
  x,
  y,
  xend = x,
  yend = y,
  label,
  arrow.size = 10,
  text.size = 16,
  hjust = 0.5,
  style = c("white", "dark"),
  fill = TRUE,
  boldFont = TRUE,
  capitalized = FALSE,
  box.size = 0.4
)

Arguments

type

Type of annotation wanted: "box" for a text box or "label" for text

x

x-axis location for annotation

y

y-axis location for annotation

xend

location on the x-axis for the tip of the arrow, defaults to x

yend

location on the x-axis for the tip of the arrow, defaults to y

label

text to be annotated

arrow.size

size of the arrow head in PostScript points

text.size

size of text head in PostScript points

hjust

horizontal justification of the text, 0 = left justified, 0 = right justified. Defaults to 0.5.

style

color style of the annotation ("white" or "dark")

fill

Fill the background of the annotation with color? Defaults to TRUE

boldFont

set TRUE (default) for bolded font

capitalized

set TRUE for upper case letters, default is FALSE

box.size

unused

Author(s)

Salla Toikkanen, Tarja Palosaari, Petteri Mäntymaa


THLfi/thlGraphs documentation built on April 23, 2022, 6:53 a.m.