简体   繁体   中英

Customizing color of the header in flextable?

How can I change the color of my header in my flextable? I'm looking for the equivalent to this in the old FlexTable:

MyFTable <- setFlexTableBackgroundColors(MyFTable, i = 1 , j = 4, colors = "grey", to = "header")

This should produce what you want:

MyFtable <- bg(i = 1, j = 4, bg = "grey", part = "header")

For future reference, all of the functions of flextable are very well documented at https://davidgohel.github.io/flextable/articles/overview.html - helped me a ton!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM