View source: R/flextable_sizes.R
| flextable_dim | R Documentation |
Returns the width, height and
aspect ratio of a flextable in a named list.
The aspect ratio is the ratio corresponding to height/width.
Names of the list are widths, heights and aspect_ratio.
flextable_dim(x, unit = "in")
x |
a flextable object |
unit |
unit for returned values, one of "in", "cm", "mm". |
Other functions for flextable size management:
autofit(),
dim.flextable(),
dim_pretty(),
fit_to_width(),
height(),
hrule(),
ncol_keys(),
nrow_part(),
width()
ftab <- flextable(head(iris))
flextable_dim(ftab)
ftab <- autofit(ftab)
flextable_dim(ftab)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.