tab_wrap_text | R Documentation |
Wrap column names and character/factor variables.
tab_wrap_text(
tabs,
wrap_rows = 35L,
wrap_cols = 15L,
exdent = 1,
whitespace_only = TRUE,
unbreakable_spaces = TRUE,
brk = "\n"
)
tabs |
A |
wrap_rows |
By default, rownames are wrapped when larger than 30 characters. |
wrap_cols |
By default, colnames are wrapped when larger than 12 characters. |
exdent |
On the second lines or more, the number or characters to use for indentation. |
whitespace_only |
Set to |
unbreakable_spaces |
Set to |
brk |
The string to use for linebreak : |
The same tabxplor_tab
or tibble
.
tab(forcats::gss_cat, race, marital, pct = "row", color = "diff") |>
tab_wrap_text(wrap_rows = 5L, wrap_cols = 8L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.