Does someone know how to change colors or style in the function tbl_summary from the package gt_summary?
Thank you very much for your help.
Does someone know how to change colors or style in the function tbl_summary from the package gt_summary?
Thank you very much for your help.
First, build your gt_summary table.
Then convert it to a format, with as_gt() or as_flextable().
Then use the many formatting commands in the gt or flextable packages to do your formatting.
For example, with gt()
library(gt)
library(gtsummary)
trial %>%
tbl_summary() %>%
as_gt() %>%
tab_options(column_labels.font.size = 24,
column_labels.background.color = "cadetblue",
table.background.color = "blanchedalmond")
Thank you very much for your help, your message was very helpful.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.