R/flextable.R
phl_calc_fontsize.Rd
Calculate optimal fontsize and height of the cell for given height for flextable.
phl_calc_fontsize(data, height)
data.frame.
single numeric value with desired height.
A named numeric vector containing two elements:
fs font size
fs
height of the single cell.
height
x <- tail(iris, 10)[,c(1,5)] phl_calc_fontsize(x, 5) #> fs height #> 24.0000000 0.4545455