fmt_get_color_code | R Documentation |
Get HTML Color Code of a fmt vector
fmt_get_color_code(x, type = "text", theme = "light", html_24_bit = NULL)
x |
The fmt vector to get the html color codes from. |
type |
The style type in |
theme |
For |
html_24_bit |
Use 24bits colors palettes for html tables : set to |
A character vector with html color codes, of the length of the initial vector.
tabs <- tab(forcats::gss_cat, race, marital, pct = "row", color = "diff")
dplyr::mutate(tabs, across(where(is_fmt), fmt_get_color_code))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.