flextable (version 0.5.5)

color: Set font color

Description

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

Usage

color(x, i = NULL, j = NULL, color, part = "body")

Arguments

x

a flextable object

i

rows selection

j

columns selection

color

color to use as font color

part

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

See Also

Other sugar functions for table style: align, bg, bold, empty_blanks, fontsize, font, italic, padding, rotate, valign

Examples

Run this code
# NOT RUN {
ft <- flextable(mtcars)
ft <- color(ft, color = "orange", part = "header")
# }

Run the code above in your browser using DataCamp Workspace