Bold or Italicize labels or levels in gtsummary tables

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)

Arguments

x

Object created using gtsummary functions

Value

Functions return the same class of gtsummary object supplied

Example Output

Author

Daniel D. Sjoberg

Examples

tbl_bold_ital_ex <-
  trial[c("trt", "age", "grade")] %>%
  tbl_summary() %>%
  bold_labels() %>%
  bold_levels() %>%
  italicize_labels() %>%
  italicize_levels()