TitleRect: Plot Boxed Annotation

View source: R/DescTools.r

TitleRectR Documentation

Plot Boxed Annotation

Description

The function can be used to add a title to a plot surrounded by a rectangular box. This is useful for plotting several plots in narrow distances.

Usage

TitleRect(label, bg = "grey", border = 1, col = "black", xjust = 0.5,
          line = 2, ...)

Arguments

label

the main title

bg

the background color of the box.

border

the border color of the box

col

the font color of the title

xjust

the x-justification of the text. This can be c(0, 0.5, 1) for left, middle- and right alignement.

line

on which MARgin line, starting at 0 counting outwards

...

the dots are passed to the text function, which can be used to change font and similar arguments.

Value

nothing is returned

Author(s)

Andri Signorell <andri@signorell.net>

See Also

title

Examples

plot(pressure)
TitleRect("pressure")

AndriSignorell/DescTools documentation built on April 13, 2024, 6:33 a.m.