gtsummary (version 1.6.3)

bold_italicize_labels_levels: Bold or Italicize labels or levels in gtsummary tables

Description

Bold or Italicize labels or levels in gtsummary tables

Usage

bold_labels(x)

italicize_labels(x)

bold_levels(x)

italicize_levels(x)

# S3 method for gtsummary bold_labels(x)

# S3 method for gtsummary bold_levels(x)

# S3 method for gtsummary italicize_labels(x)

# S3 method for gtsummary italicize_levels(x)

# S3 method for tbl_cross bold_labels(x)

# S3 method for tbl_cross bold_levels(x)

# S3 method for tbl_cross italicize_labels(x)

# S3 method for tbl_cross italicize_levels(x)

Value

Functions return the same class of gtsummary object supplied

Arguments

x

Object created using gtsummary functions

Example Output

Example 1

image of rendered example table

Author

Daniel D. Sjoberg

See Also

Other tbl_summary tools: add_ci(), add_n.tbl_summary(), add_overall(), add_p.tbl_summary(), add_q(), add_stat_label(), inline_text.tbl_summary(), inline_text.tbl_survfit(), modify, separate_p_footnotes(), tbl_custom_summary(), tbl_merge(), tbl_split(), tbl_stack(), tbl_strata(), tbl_summary()

Other tbl_regression tools: add_global_p(), add_q(), combine_terms(), inline_text.tbl_regression(), modify, tbl_merge(), tbl_regression(), tbl_split(), tbl_stack(), tbl_strata()

Other tbl_uvregression tools: add_global_p(), add_q(), inline_text.tbl_uvregression(), modify, tbl_merge(), tbl_split(), tbl_stack(), tbl_strata(), tbl_uvregression()

Examples

Run this code
# Example 1 ----------------------------------
tbl_bold_ital_ex1 <-
  trial[c("trt", "age", "grade")] %>%
  tbl_summary() %>%
  bold_labels() %>%
  bold_levels() %>%
  italicize_labels() %>%
  italicize_levels()

Run the code above in your browser using DataLab