labelFig: Adds a label to the upper left corner of a plot

View source: R/labelFig.r

labelFigR Documentation

Adds a label to the upper left corner of a plot

Description

Adds a label to the upper left corner of a plot.

Usage

labelFig(label, adj = 0.05, ...)

Arguments

label

Character.

adj

A single number or two numbers. If a single number, then this is an adjustment factor that affects the position of the label in the y-direction relative to the default position. Positive connotes higher, negative lower. If this is two values, then the first adjusts in the x-direction (negative connotes left, positive right), and the second adjust in the y-direction.

...

Other arguments to send to text.

Value

Nothing (adds text to a plot).

Examples

par(mfrow=c(1, 2))
plot(1, 1)
labelFig('A: One')
plot(2, 2)
labelFig('B: Two')

adamlilith/legendary documentation built on July 28, 2023, 8:13 p.m.