boxedText: Function boxedText

boxedTextR Documentation

Function boxedText

Description

Adds a boxed text to a plot.

Usage

boxedText(
  x,
  y,
  text = "Hello \nWorld",
  x2 = NULL,
  y2 = NULL,
  maxlength = NULL,
  col = "yellow",
  border = "black",
  pos = NULL,
  font = 1,
  hspace = 1,
  vspace = 1.2,
  cex = 1,
  decollide = F,
  decollide.repetitions = 10,
  ...
)

Arguments

x

Numeric value specifying the text's position on the x-axis.

y

Numeric value specifying the text's position on the y-axis.

x2

Numeric value specifying the arrow's position on the x-axis.

y2

Numeric value specifying the arrow's position on the y-axis.

col

Character value specifying the color of the border. Defaults to "black".

pos

Numeric value specifying the position of the arrow relative to the box (0=no arrow plotted, 1=down, 2=left, 3=up, 4=right).

...

Additional graphical parameters for text.

txt

Character value specifying the text to be plotted.

Details

Adds a boxed text to a plot.

Examples

plot(1:10,1:10);boxedText(7,2.5,text="This (3;3) is a remarkable point worth emphasizing",3,3,col="yellow",maxlength=20)

AndreasFischer1985/quantqual documentation built on June 20, 2022, 4:55 p.m.