Merge and stack text from two columns in
gt and color one with team colors
gt_merge_stack_team_color() function takes an existing
gt table and merges
column 1 and column 2, stacking column 1's text on top of column 2's.
Top text is in all caps while the lower text is bigger, bolded,
and colored by the team name in another column.
This is a slightly modified version of
gtExtras::gt_merge_stack() written by Tom Mock.
An existing gt table object of class
The column to stack on top.
The column to merge and place below with the text team color that corresponds to
the font size for the top and bottom text in px. Can be vector of length 1 or 2. Defaults to c(12, 14)
the font weight of the top and bottom text. Can be vector of length 1 or 2. Defaults to c("lighter", "bold")
the font variant of the top and bottom text. Can be vector of length 1 or 2. Defaults to "small-caps"
The color for the top text.