textempty function

adds lines of text, on a colored background to a plot

adds lines of text, on a colored background to a plot

adds one or more lines of text, with a colored background, no box

textempty(mid, lab = "", adj = c(0.5, 0.5), box.col = "white", cex = 1, ...)

Arguments

  • mid: midpoint (x,y) of the text.
  • lab: one label or a vector string of labels to be added in box.
  • adj: text adjustment.
  • box.col: background color.
  • cex: relative size of text.
  • ...: other arguments passed to function textplain .

Author(s)

Karline Soetaert karline.soetaert@nioz.nl

Examples

openplotmat(xlim = c(-0.1, 1.1), col = "lightgrey", main = "textempty") for (i in 1:10) textempty(mid = runif(2), box.col = i, lab = LETTERS[i], cex = 2) textempty(mid = c(0.5, 0.5), adj = c(0, 0), lab = "textempty", box.col = "white")

See Also

textdiamond, textellipse, texthexa, textmulti, textplain, textrect, textround

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

Useful links