View source: R/style-helpers.R
| ct_style | R Documentation |
Constructs a validated style object for use with cross_table().
ct_style(
observed = NULL,
expected = NULL,
row_percentage = NULL,
col_percentage = NULL,
total_percentage = NULL,
total = NULL,
title = NULL,
border_text = NULL
)
observed |
Style for observed frequency cells. |
expected |
Style for expected frequency values. |
row_percentage |
Style for row percentage values. |
col_percentage |
Style for column percentage values. |
total_percentage |
Style for grand total percentage values. |
total |
Style for total row/column cells. |
title |
Style for the table title. |
border_text |
Style for the horizontal border lines. |
An object of class c("ct_style", "tabstats_style").
ct_style(observed = "blue", expected = "yellow", title = "bold")
ct_style(observed = \(ctx) cli::col_green(ctx$formatted_text))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.