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
# NOT RUN { x <- tail(iris, 10)[,c(1,5)] phl_calc_fontsize(x, 5) # }
Run the code above in your browser using DataLab