| theme_brand | R Documentation |
Generate ggplot2 theme from brand configuration
theme_brand(
brand = "block",
variant = "light",
base_theme = ggplot2::theme_minimal(),
base_size = NULL
)
brand |
Name of the brand to use |
variant |
Theme variant ("light", "dark", or NULL for default) |
base_theme |
Base ggplot2 theme to build upon (default: theme_minimal()) |
base_size |
Base font size (overrides brand config if specified) |
A ggplot2 theme object
## Not run:
library(ggplot2)
# Light theme
ggplot(mtcars, aes(mpg, wt)) +
geom_point() +
theme_brand("block", variant = "light")
# Dark theme
ggplot(mtcars, aes(mpg, wt)) +
geom_point() +
theme_brand("block", variant = "dark")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.