textplain: adds lines of text to a plot

Description Usage Arguments Author(s) See Also Examples

Description

adds one or more lines of text, centered around "mid"

Usage

1
  textplain(mid, height = 0.1, lab = "", adj = c(0.5, 0.5), ...)

Arguments

mid

central coordinates where to write the text.

height

height of text.

lab

one or more character strings or expressions specifying the *text* to be written.

adj

label adjustments.

...

other arguments passed to R-function text.

Author(s)

Karline Soetaert <karline.soetaert@nioz.nl>

See Also

textdiamond, textellipse, textempty, texthexa, textmulti, textrect, textround

Examples

1
2
3
4
5
6
7
  openplotmat(main = "textplain")
  textplain(mid = c(0.5, 0.5), 
            lab = c("this text is", "centered", "4 strings", "on 4 lines"))
  textplain(mid = c(0.5, 0.2), adj = c(0, 0.5), font = 2, height = 0.05,
            lab = c("this text is","left alligned"))
  textplain(mid = c(0.5, 0.8), adj = c(1, 0.5), font = 3, height = 0.05, 
            lab = c("this text is","right alligned"))

Example output

Loading required package: shape

diagram documentation built on Oct. 23, 2020, 5:46 p.m.