View source: R/gt_merge_stack.R
gt_merge_stack | R Documentation |
gt
(variation on {gtExtras}
)A variation on the gtExtras::gt_merge_stack function that implements a
horizontal rule parameter separating the top and bottom text and simplifies
the requirements for the input variables. {gtExtras}
was created by Thomas
Mock and is available under an MIT License.
gt_merge_stack( gt_object, columns = c(1, 2), font_color = c("black", "grey"), ..., small_cap = FALSE, font_size = c(14, 10), font_weight = "bold", h_rule = FALSE )
gt_object |
An existing gt table object of class |
columns |
Columns to stack, Default: c(1, 2) |
font_color |
Color(s) to use for stacked text. Default: c("black", "grey") |
... |
Arguments passed on to
|
small_cap |
a logical indicating whether to use 'small-cap' on the top line of text |
font_size |
a string of length 2 indicating the font-size in px of the top and bottom text |
font_weight |
a string of length 2 indicating the 'font-weight' of the top and bottom text. Must be one of 'bold', 'normal', 'lighter' |
h_rule |
Horizontal rule to separate top and bottom column text. If
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.