Learn R Programming

flextable (version 0.9.5)

dim.flextableGrob: 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 flextableGrob
dim(x)

Value

a named list with two elements, width and height. Values are expressed in inches.

Arguments

x

a flextableGrob object

Examples

Run this code
ftab <- flextable(head(iris))
gr <- gen_grob(ftab)
dim(gr)

Run the code above in your browser using DataLab