View source: R/style_tbl_compact.R
style_tbl_compact | R Documentation |
Use gtsummary::theme_gtsummary_compact()
and gtreg::tbl_listing()
to apply gtsummary compact formatting to any type of table.
style_tbl_compact(data)
data |
a gt, flextable, huxtable, or |
Apply the same compact styling available from
gtsummary::theme_gtsummary_compact()
to any
gt, flextable, huxtable, or knitr::kable()
table.
knitr::kable()
stlying uses the kableExtra package
Example 1
Other gtsummary-related functions:
add_inline_forest_plot()
,
add_sparkline()
,
as_ggplot()
,
bold_italicize_group_labels()
,
logistic_reg_adj_diff()
,
tbl_likert()
,
theme_gtsummary_msk()
style_tbl_compact_ex1 <-
head(trial) %>%
gt::gt() %>%
style_tbl_compact()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.