addTextBox: Add a box with a text inside

Description Usage Arguments Details Examples

View source: R/addTextBox.R

Description

Add a box with a text inside

Usage

1
2
3
4
5
6
7
8
9
addTextBox(
  xLimits,
  yLimits,
  text,
  border = NULL,
  col = "white",
  lty = par("lty"),
  ...
)

Arguments

xLimits

x-Axis limits for box.

yLimits

y-Axis limits for box.

text

A character or expression vector specifying the text to be written.

border

the color to draw the border. The default, NULL, means to use par("fg"). Use border = NA to omit borders. See Details.

col

The color for filling the box polygon.

lty

The line type to be used, as in par.

...

Extra arguments passed from text function.

Details

For extra details about border, col and lty, check the description of polygon.

Examples

1
2
3
plot(1, 1, pch = NA)
addTextBox(xLimits = c(0.9, 1.1), yLimits = c(0.9, 1.1),
           text = "Hello World!", col = "indianred1", font = 2)

LuisLauM/ruisu documentation built on Jan. 31, 2020, 9:58 a.m.