A shortcut for gt_theme_source(gt_object, "wikipedia"): the Wikipedia wikitable table style
from the surveyed registry (category periodical). mode = "dark" uses the theme's dark palette.
Usage
gt_theme_wikipedia(gt_object, mode = "light", density = "comfortable")
Arguments
- gt_object
A gt table object to modify.
- mode
"light" (default) or "dark".
- density
Character. The type and padding scale. One of "comfortable",
"compact" or "social".
Value
A modified gt table with the theme applied.
Examples
library(gt)
central <- subset(
sdv_example_standings, division == "Central",
c(team_name, wins, losses, win_pct)
)
gt(central) |> gt_theme_wikipedia()
| team_name |
wins |
losses |
win_pct |
|---|
| Detroit Pistons |
60 |
22 |
0.732 |
| Cleveland Cavaliers |
52 |
30 |
0.634 |
| Milwaukee Bucks |
32 |
50 |
0.390 |
| Chicago Bulls |
31 |
51 |
0.378 |
| Indiana Pacers |
19 |
63 |
0.232 |