textmulti: adds lines of text in an multigonal box to a plot

Description Usage Arguments Details Author(s) See Also Examples

View source: R/textmulti.R

Description

adds one or more lines of text, centered around "mid" in an multigonal box

Usage

1
2
3
4
textmulti(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, nr = 6, ...)

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.

nr

the number of angles.

...

other arguments passed to function textplain.

Details

see shadowbox for specifications of the multigonal box and its shadow.

Author(s)

Karline Soetaert <karline.soetaert@nioz.nl>

See Also

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

Examples

1
2
3
4
5
  openplotmat(xlim = c(-0.1, 1.1), main = "textmulti")

  for (i in 1:10) 
    textmulti(mid = runif(2), col = i, radx = 0.1, rady = 0.1,
             lab = LETTERS[i], cex = 2, nr = trunc(i/1.5)+3)

diagram documentation built on May 19, 2017, 10:16 p.m.

Search within the diagram package
Search all R packages, documentation and source code