textround {diagram}R Documentation

adds lines of text in a rounded box to a plot

Description

adds one or more lines of text, centered around "mid" in an a rectangular box with rounded sides

Usage

textround(mid, radx, rady = radx*length(lab), lwd = 1, 
  shadow.size = 0.01, adj = c(0.5, 0.5), lab = "", box.col = "white", 
  lcol = "black", shadow.col = "grey", angle = 0, rx = rady, ...)

Arguments

mid

midpoint (x,y) of the box.

radx

horizontal radius of the box.

rady

vertical radius of the box.

lwd

line width of line surrounding the box.

shadow.size

relative size of shadow.

adj

text adjustment.

lab

one label or a vector string of labels to be added in box.

box.col

fill color of the box.

lcol

line color surrounding box.

shadow.col

color of shadow.

angle

rotation angle, degrees.

rx

the radius of the rounded part.

...

other arguments passed to function textplain.

Details

see shadowbox for specifications of the box and its shadow

Author(s)

Karline Soetaert <karline.soetaert@nioz.nl>

See Also

textdiamond, textellipse, textempty, texthexa, textmulti, textplain, textrect.

Examples

  openplotmat(xlim = c(-0.1, 1.1), main = "textround")

  for (i in 1:10) 
    textround(mid = runif(2), col = i, 
              radx = 0.03, rady = 0.075,
              lab = LETTERS[i], cex = 2)

[Package diagram version 1.6.5 Index]