Display$textBoundingBox {IdMappingAnalysis} | R Documentation |
Determine the size of the text bounding box taking into account the text angle (srt).
## 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, ...)
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 |
... |
Not used |
The data.frame
with two columns containing the width and height of the bounding box(es).
The function should be called only on already created graphical device, otherwise an error will be thrown.
Alex Lisovich, Roger Day
For more information see Display
.
## Not run: bounding.box<-Display$textBoundingBox("text",cex=2,srt=30); ## End(Not run)