R: Set font color

color {flextable} | R Documentation

## 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')

### Examples

    ft <- flextable(mtcars)
    ft <- color(ft, color = "orange", part = "header")

[Package flextable version 0.4.5 Index]