tab_wrap_text {tabxplor} | R Documentation |
Wrap column names and character/factor variables.
Description
Wrap column names and character/factor variables.
Usage
tab_wrap_text(
tabs,
wrap_rows = 35L,
wrap_cols = 15L,
exdent = 1,
whitespace_only = TRUE,
unbreakable_spaces = TRUE,
brk = "\n"
)
Arguments
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 : |
Value
The same tabxplor_tab
or tibble
.
Examples
tab(forcats::gss_cat, race, marital, pct = "row", color = "diff") |>
tab_wrap_text(wrap_rows = 5L, wrap_cols = 8L)
[Package tabxplor version 1.2.0 Index]