gt_theme_duncan: Personalized gt theme

Description Usage Arguments Value Examples

View source: R/gt-theme-duncan.R

Description

A custom theme for tables generated with [gt::gt].

Usage

1
gt_theme_duncan(data, bg_color = "#FFFFFF", all_caps = F, ...)

Arguments

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].

Value

An object of class 'gt_tbl'.

Examples

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()

dungates/DGThemes documentation built on Dec. 20, 2021, 2:14 a.m.