addTextBox: Add a box with a text inside

View source: R/addTextBox.R

addTextBoxR Documentation

Add a box with a text inside

Description

Add a box with a text inside

Usage

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

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 March 26, 2024, 8:23 a.m.