dim.flextableGrob {flextable} | R Documentation |
Get optimal width and height of a flextable grob
Description
returns the optimal width and height for the grob, according to the grob generation parameters.
Usage
## S3 method for class 'flextableGrob'
dim(x)
Arguments
x |
a flextableGrob object |
Value
a named list with two elements, width
and height
.
Values are expressed in inches.
Examples
ftab <- flextable(head(iris))
gr <- gen_grob(ftab)
dim(gr)
[Package flextable version 0.9.6 Index]