bg

0th

Percentile

Set background color

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

Usage
bg(x, i = NULL, j = NULL, bg, part = "body")
Arguments
x

a flextable object

i

rows selection

j

columns selection

bg

color to use as background color

part

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

Aliases
  • bg
Examples
# NOT RUN {
ft <- flextable(mtcars)
ft <- bg(ft, bg = "#DDDDDD", part = "header")
# }
Documentation reproduced from package flextable, version 0.4.6, License: GPL-3

Community examples

Looks like there are no examples yet.