Apply theme zebra to a flextable

theme_zebra(
  x,
  odd_header = "#CFCFCF",
  odd_body = "#EFEFEF",
  even_header = "transparent",
  even_body = "transparent"
)

Arguments

x

a flextable object

odd_header, odd_body, even_header, even_body

odd/even colors for table header and body

Illustrations

See also

Examples

ft <- flextable(head(airquality)) ft <- theme_zebra(ft) ft
#> a flextable object. #> col_keys: `Ozone`, `Solar.R`, `Wind`, `Temp`, `Month`, `Day` #> header has 1 row(s) #> body has 6 row(s) #> original dataset sample: #> Ozone Solar.R Wind Temp Month Day #> 1 41 190 7.4 67 5 1 #> 2 36 118 8.0 72 5 2 #> 3 12 149 12.6 74 5 3 #> 4 18 313 11.5 62 5 4 #> 5 NA NA 14.3 56 5 5