Learn R Programming

IdMappingAnalysis (version 1.16.0)

Display$textBoundingBox: Determine the size of the text bounding box

Description

Determine the size of the text bounding box taking into account the text angle (srt).

Usage

## Static method (use this): ## Display$textBoundingBox(stext, units="user", cex=1, srt=0, get.biggest=TRUE, ...)
## Don't use the below: "textBoundingBox"(static, stext, units="user", cex=1, srt=0, get.biggest=TRUE, ...)

Arguments

stext
The text which width and height to be determined.
units
If 'user' (default) the aspect ratio is calculated based on 'usr' and 'pin'. graphics parameters or kept equal to 1 otherwise.
cex
Text font size. Default is 1.
srt
Text angle.Default is 0.
get.biggest
If TRUE (default), returns the biggest bounding box in case stest contains multiple strings.
...
Not used

Value

The data.frame with two columns containing the width and height of the bounding box(es).

See Also

For more information see Display.