Learn R Programming

flextable (version 0.6.3)

theme_zebra: Apply zebra theme

Description

Apply theme zebra to a flextable

Usage

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

Other functions related to themes: get_flextable_defaults(), set_flextable_defaults(), theme_alafoli(), theme_booktabs(), theme_box(), theme_tron_legacy(), theme_tron(), theme_vader(), theme_vanilla()

Examples

Run this code
# NOT RUN {
ft <- flextable(head(airquality))
ft <- theme_zebra(ft)
ft
# }

Run the code above in your browser using DataLab