Reputation: 123
Is there a way to create an R table (I want to eventually output it as a PNG). With every other row colored? All of the options I am seeing to color rows are based on the row value and the number of rows and row values will be dynamic so I can't do it that way.
Below is an example of what I want
Upvotes: 3
Views: 1281
Reputation: 3650
You can use theme_zebra
from flextable
library(flextable)
ftab <- flextable(head(iris))
theme_zebra(ftab)
Upvotes: 2