Description Usage Arguments Value Note Author(s) See Also Examples
Determine the size of the text bounding box taking into account the text angle (srt).
1 2 3 4 5 6 | ## 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
.
1 2 3 4 | ## Not run:
bounding.box<-Display$textBoundingBox("text",cex=2,srt=30);
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.