View source: R/mdb_treatment_theme.R
mdb_treatment_theme | R Documentation |
A gt theme to be applied to a reshaped data frame for the creation of MDB tables. The theme formats all columns and rows for the main MDB tables. A different theme exists for the main tables as the layout is different.
mdb_treatment_theme(df, ...)
df |
a dataframe from |
... |
dot-dot-dot option to pass additional formatting to gt object |
formatted gt object
Other MDB gt themes:
mdb_main_theme()
## Not run:
mdb_df <- make_mdb_tx_df(ou_im, resolve_issues = F)
mdb_tbl <- reshape_mdb_tx_df(mdb_df)
numeric_cols <- mdb_tbl %>% select_if(is.numeric) %>% names()
mdb_tbl %>% filter(operatingunit == "Zambia") %>%
gt(groupname_col = "agency") %>%
mdb_treatment_theme(numeric_cols)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.