Use this function to set preferences for the display of gtsummary tables.
The default formatting and styling throughout the gtsummary package are
taken from the published reporting guidelines of the top four urology
journals: European Urology, The Journal of Urology, Urology and
the British Journal of Urology International. Use this function to change
the default reporting style to match another journal, or your own
personal style.
set_gtsummary_theme(x) reset_gtsummary_theme()
x | A gtsummary theme function, e.g. |
---|
Example
Available gtsummary themes
#>#>#>#>set_gtsummary_theme_ex1 <- trial %>% dplyr::select(age, grade, trt) %>% tbl_summary(by = trt) %>% add_stat_label() %>% as_gt() # reset gtsummary theme reset_gtsummary_theme()