| theme_brand_flextable | R Documentation |
Apply brand colors to a flextable table.
theme_brand_flextable(
table,
brand = NULL,
background = NULL,
foreground = NULL
)
table |
A flextable object to theme. |
brand |
One of:
|
background |
The background color, defaults to |
foreground |
The foreground color, defaults to |
Returns a themed flextable object.
Other branded theming functions:
theme_brand_ggplot2(),
theme_brand_gt(),
theme_brand_plotly(),
theme_brand_thematic()
brand <- as_brand_yml('
color:
palette:
black: "#1A1A1A"
white: "#F9F9F9"
orange: "#FF6F20"
foreground: black
background: white
primary: orange')
library(flextable)
theme_brand_flextable(
flextable(head(palmerpenguins::penguins)),
brand
)
brand <- as_brand_yml('
color:
palette:
black: "#1A1A1A"
white: "#F9F9F9"
orange: "#FF6F20"
foreground: black
background: white
primary: orange')
library(flextable)
theme_brand_flextable(
flextable(head(mtcars)),
brand
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.