tab_kable | R Documentation |
Print a tabxplor table in html
tab_kable(
tabs,
theme = c("light", "dark"),
color_type = NULL,
html_24_bit = NULL,
tooltips = TRUE,
popover = NULL,
color_legend = TRUE,
caption = knitr::opts_current$get("tab.cap"),
html_font = NULL,
get_data = FALSE,
full_width = FALSE,
wrap_rows = 35,
wrap_cols = 15,
whitespace_only = TRUE,
...
)
tabs |
A table made with |
theme |
By default, a white table with black text, Set to |
color_type |
Set to |
html_24_bit |
Use 24bits colors palettes for html tables : set 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. By default, it uses
|
get_data |
Get the transformed data instead of the html table. |
full_width |
A TRUE or FALSE variable controlling whether the HTML table should have the preferable format for full_width. If not specified, a HTML table will have full width by default but this option will be set to FALSE for a LaTeX 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 |
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.
tabs <- tab(forcats::gss_cat, race, marital, year, pct = "row", color = "diff")
tab_kable(tabs, theme = "light", color_type = "text")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.