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 = "black", col2 = "yellow",
  border = "black", xpd = T, 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 text. Defaults to "black".

col2

Character value specifying the color of the box. Defaults to "yellow".

border

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

xpd

Logical value specifying whether plotting is not clipped, or restricted, to the plotting region. Defaults to T.

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/qqBaseX documentation built on Aug. 28, 2022, 11:30 a.m.