powered by
Apply theme zebra to a flextable
theme_zebra( x, odd_header = "#CFCFCF", odd_body = "#EFEFEF", even_header = "transparent", even_body = "transparent" )
a flextable object
odd/even colors for table header and body
Other flextable theme: theme_alafoli(), theme_booktabs(), theme_box(), theme_tron_legacy(), theme_tron(), theme_vader(), theme_vanilla()
theme_alafoli()
theme_booktabs()
theme_box()
theme_tron_legacy()
theme_tron()
theme_vader()
theme_vanilla()
# NOT RUN { ft <- flextable(iris) ft <- theme_zebra(ft) # }
Run the code above in your browser using DataLab