Display$textBoundingBox {IdMappingAnalysis} | R Documentation

## 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:
    ## S3 method for class 'Display'
    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).

### Note

The function should be called only on already created graphical device, otherwise an error will be thrown.

### Author(s)

Alex Lisovich, Roger Day

### See Also

For more information see `Display`.

### Examples

    ## Not run:
     bounding.box<-Display$textBoundingBox("text",cex=2,srt=30);

    ## End(Not run)

[Package IdMappingAnalysis version 1.24.0 Index]