tab_plot | R Documentation |
Print a tabxplor table as plot
tab_plot(
tabs,
theme = c("light", "dark"),
color_type = NULL,
html_24_bit = NULL,
color_legend = TRUE,
caption = NULL,
wrap_rows = 35,
wrap_cols = 14,
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 |
color_legend |
Print colors legend below the table ? |
caption |
The table caption. |
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 |
A ggplot
object to be printed in the
RStudio
Plots pane or exported as image, using ggtexttable
.
tab(forcats::gss_cat, race, marital, pct = "row", color = "diff") |>
tab_plot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.