dim.flextableGrob: Get optimal width and height of a flextable grob

View source: R/grid_grobs.R

dim.flextableGrobR 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)

flextable documentation built on Oct. 30, 2024, 9:15 a.m.