flextable (version 0.5.11)

fontsize: Set font size

Description

change font size of selected rows and columns of a flextable.

Usage

fontsize(x, i = NULL, j = NULL, size = 11, part = "body")

Arguments

x

a flextable object

i

rows selection

j

columns selection

size

integer value (points)

part

partname of the table (one of 'all', 'body', 'header', 'footer')

Illustrations

See Also

Other sugar functions for table style: align(), bg(), bold(), color(), empty_blanks(), font(), italic(), line_spacing(), padding(), rotate(), valign()

Examples

Run this code
# NOT RUN {
ft <- flextable(head(iris))
ft <- fontsize(ft, size = 14, part = "header")
ft <- fontsize(ft, size = 14, j = 2)
ft <- fontsize(ft, size = 7, j = 3)
ft
# }

Run the code above in your browser using DataLab