Skip to contents

A theme which applies some pretty defaults to a flextable. This makes numerous changes, including: Making header larger, bold, and black, adds a border between the header and body, left aligns first body column and centers all others, adds border between body and footer, makes footer text smaller and lighter, and then removes padding between rows.

Usage

theme_gavi_table(ft)

Arguments

ft

A flextable object.

Examples


library(dplyr)
library(flextable)
library(officer)

wuenic %>%
  filter(year == 2020 & iso3 %in% c("COD", "ETH", "IND", "PAK") & vaccine == "dtp3") %>%
  select(iso3, coverage) %>%
  flextable() %>%
  add_header_lines("DTP3 coverage in high impact countries") %>%
  add_footer_lines("Source: WUENIC, July 2021") %>%
  theme_gavi_table()

DTP3 coverage in high impact countries

iso3

coverage

COD

70

ETH

71

IND

85

PAK

77

Source: WUENIC, July 2021