textdiamond: adds lines of text in a diamand-shaped box to a plot

Description Usage Arguments Details Author(s) See Also Examples

Description

adds one or more lines of text, in a diamond-shaped box.

Usage

1
2
3
textdiamond(mid, radx, rady = NULL, lwd = 1, shadow.size = 0.01,
            adj = c(0.5,0.5), lab = "", box.col = "white", 
            lcol = "black", shadow.col = "grey", angle = 0, ...)

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.

...

other arguments passed to function textplain.

Details

see shadowbox for specifications of the diamond-shaped box and its shadow.

Author(s)

Karline Soetaert <karline.soetaert@nioz.nl>

See Also

textellipse, textempty,texthexa, textmulti, textplain, textrect, textround

Examples

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

for (i in 1:10) 
  textdiamond(mid = runif(2), col = i, radx = 0.1, rady = 0.05,
              lab = LETTERS[i], cex = 2, angle = runif(1)*360)

Example output

Loading required package: shape

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