customLayout (version 0.3.0)

phl_calc_fontsize: Calculate optimal fontsize and height of the cell for given height for flextable.

Description

Calculate optimal fontsize and height of the cell for given height for flextable.

Usage

phl_calc_fontsize(data, height)

Arguments

data

data.frame.

height

single numeric value with desired height.

Value

A named numeric vector containing two elements:

  • fs font size

  • height of the single cell.

Examples

Run this code
# NOT RUN {
x <- tail(iris, 10)[,c(1,5)]
phl_calc_fontsize(x, 5)

# }

Run the code above in your browser using DataLab