theme_gt_compact: Compact and minimal theme for 'gt' tables

theme_gt_compactR Documentation

Compact and minimal theme for gt tables

Description

This theme was used for placing somewhat larger tables into xaringan slides by making the spacing more compact and decreasing the font size. The exposed variables are to control font size and table width, but any option from the gt package is allowed.

Usage

theme_gt_compact(data, table.font.size = pct(80), table.width = pct(90), ...)

Arguments

data

A table object that is created using the gt() function.

table.width

The width of the table. Can be specified as a single-length character with units of pixels or as a percentage. If provided as a single-length numeric vector, it is assumed that the value is given in units of pixels. The px() and pct() helper functions can also be used to pass in numeric values and obtain values as pixel or percent units.

...

For passing additional arguments to the tab_options() function


asshah4/durandal documentation built on Sept. 22, 2023, 9:02 p.m.