add_label: Add label to base graphic panels

Description Usage Arguments Value Author(s) See Also Examples

View source: R/add_label.R

Description

Adds a label to a base plot using the "user coordinates" of the plotting region. The default is to add the label in the upper left corner.

Usage

1
add_label(label, xfrac = 0.01, yfrac = 0.07, pos = 4, ...)

Arguments

label

string, label to be added to plot

xfrac

x-coordinate location, in user coordinates

yfrac

y-coordinate location, in user coordinates

pos

position specifier for label, see text

...

passed to graphics::text

Value

Function only useful for side effect of adding a label.

Author(s)

Michael Malick

See Also

text par

Examples

1
2
 plot(1:10)
 add_label("(a) cool label")

MichaelMalick/r-malick documentation built on May 7, 2019, 4:56 p.m.