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)

davidgohel/flextable documentation built on April 18, 2024, 11:37 a.m.