titanic |>
plot_categorical(
Class,
by = c(Age, Sex)
)
# \donttest{
titanic |>
plot_categorical(
Class,
by = c(Age, Sex),
show_overall = FALSE,
flip = TRUE
)
titanic |>
plot_categorical(
Class,
by = c(Age, Sex),
flip = TRUE,
minimal = TRUE
)
# }
if (FALSE) { # rlang::is_installed("gtsummary")
# \donttest{
gtsummary::trial |>
plot_categorical(grade, by = c(age, stage, trt))
gtsummary::trial |>
plot_categorical(grade, by = c(age, stage, trt), drop_na_by = TRUE)
gtsummary::trial |>
plot_categorical(c(grade, stage), by = c(trt, response))
# }
}
Run the code above in your browser using DataLab