tab_kable {tabxplor} | R Documentation |
Print a tabxplor table in html
Description
Print a tabxplor table in html
Usage
tab_kable(
tabs,
theme = c("light", "dark"),
color_type = NULL,
html_24_bit = NULL,
tooltips = TRUE,
popover = NULL,
color_legend = TRUE,
caption = NULL,
html_font = "\"Arial\", arial, helvetica, sans-serif",
get_data = FALSE,
wrap_rows = 35,
wrap_cols = 15,
whitespace_only = TRUE,
...
)
Arguments
tabs |
|
theme |
By default, a white table with black text, Set to |
color_type |
Set to |
html_24_bit |
Should specific 24bits colors palettes be used ? Default to
|
tooltips |
By default, html tooltips are used to display additional informations
at mouse hover. Set to |
popover |
By default, takes |
color_legend |
Print colors legend below the table ?
You can then use a |
caption |
The table caption. For formatting, you need to use a |
html_font |
A string for HTML css font. For example,
|
get_data |
Get the transformed data instead of the html table. |
wrap_rows |
By default, rownames are wrapped when larger than 30 characters. |
wrap_cols |
By default, colnames are wrapped when larger than 12 characters. |
whitespace_only |
Set to |
... |
Other arguments to pass to |
Value
A html table (opened in the viewer in RStudio). Differences from totals, confidence intervals, contribution to variance, and unweighted counts, are available in an html tooltip at cells hover.
Examples
tabs <- tab(forcats::gss_cat, race, marital, year, pct = "row", color = "diff")
tab_kable(tabs, theme = "light", color_type = "text")