View source: R/zz-api-ggplot-utils.R
gg_simple_table | R Documentation |
A simple table as a ggplot patchwork object, no customisation allowed
gg_simple_table(df, pts = 8, font = "sans", unwrapped = FALSE)
df |
the dataframe with the table data. Column names will become headings |
pts |
text size in points |
font |
the font family |
unwrapped |
- set this to TRUE if you want to add to a patchwork and use patchwork::wrap_plots(p,list(table)) |
A gtable object (i.e. a grob) optionally wrapped as a patchwork plot.
if (FALSE) {
gg_simple_table(tibble::tibble(x=c(1,2,3),y=c(5,4,3)),pts=10)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.