| bg {flextable} | R Documentation |
change background color of selected rows and columns of a flextable.
bg(x, i = NULL, j = NULL, bg, part = "body")
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') |
ft <- flextable(mtcars) ft <- bg(ft, bg = "#DDDDDD", part = "header")