Description Usage Arguments Value Examples
View source: R/gt-theme-duncan.R
A custom theme for tables generated with [gt::gt].
1 | gt_theme_duncan(data, bg_color = "#FFFFFF", all_caps = F, ...)
|
data |
A 'gt_tbl' object, generated from [gt::gt]. |
bg_color |
The background color of the table cells. |
all_caps |
Whether or not to capitalize titles |
... |
Additional arguments passed to [gt::tab_options]. |
An object of class 'gt_tbl'.
1 2 3 4 5 | mtcars %>%
head() %>%
gt::gt() %>%
gt::tab_header(title = "Cars n stuff", subtitle = "I don't know anything about cars") %>%
DGThemes::gt_theme_duncan()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.