powered by
change background color of selected rows and columns of a flextable.
bg(x, i = NULL, j = NULL, bg, part = "body")
a flextable object
rows selection
columns selection
color to use as background color
partname of the table (one of 'all', 'body', 'header')
# NOT RUN { ft <- flextable(mtcars) ft <- bg(ft, bg = "#DDDDDD", part = "header") # }
Run the code above in your browser using DataLab