# \donttest{
# Basic workflow with extras()
gtsummary::trial |>
gtsummary::tbl_summary(by = trt) |>
extras()
# Complete workflow with styling
gtsummary::trial |>
gtsummary::tbl_summary(by = trt, include = c(age, marker, grade, stage)) |>
extras() |>
gtsummary::add_variable_group_header(
header = "Patient Characteristics",
variables = age:stage
) |>
add_group_styling() |>
add_group_colors()
# }
Run the code above in your browser using DataLab