theme_gtsummary_roche: Roche Theme

View source: R/theme_gtsummary_roche.R

theme_gtsummary_rocheR Documentation

Roche Theme

Description

A gtsummary theme for Roche tables

  • Calls the gtsummary::theme_gtsummary_compact() theme.

  • Uses label_roche_pvalue() as the default formatting function for all p-values.

  • Defaults to a mono-spaced font for gt tables.

Usage

theme_gtsummary_roche(set_theme = TRUE, font_size = NULL)

Arguments

set_theme

(scalar logical)
Logical indicating whether to set the theme. Default is TRUE. When FALSE the named list of theme elements is returned invisibly

font_size

(scalar numeric)
Numeric font size for compact theme. Default is 13 for gt tables, and 8 for all other output types

Value

theme list

Examples

theme_gtsummary_roche()

tbl_demographics(gtsummary::trial, by = trt, include = c(age, grade))

gtsummary::reset_gtsummary_theme()

crane documentation built on April 12, 2025, 2 a.m.