# \donttest{
# Setting JAMA theme for gtsummary
set_gtsummary_theme(theme_gtsummary_journal("jama"))
# Themes can be combined by including more than one
set_gtsummary_theme(theme_gtsummary_compact())
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()
# }
Run the code above in your browser using DataLab