Learn R Programming

crane (version 0.1.0)

theme_gtsummary_roche: 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)

Value

theme list

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

Examples

Run this code
theme_gtsummary_roche()

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

gtsummary::reset_gtsummary_theme()

Run the code above in your browser using DataLab