textplain function

adds lines of text to a plot

adds lines of text to a plot

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

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

Examples

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"))

See Also

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

  • Maintainer: Karline Soetaert
  • License: GPL (>= 2)
  • Last published: 2020-09-30

Useful links