theme_gt_compact | R Documentation |
gt
tablesThis 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.
theme_gt_compact(data, table.font.size = pct(80), table.width = pct(90), ...)
data |
A table object that is created using the |
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 |
... |
For passing additional arguments to the |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.