| hd_set_theme | R Documentation |
Configures the default theme, colour palette, font, and optional JavaScript
plugins for all figures produced with hd_make() in the current R session.
Call once at the top of a script or in .Rprofile.
hd_set_theme(
hc_theme = NULL,
gg_theme = NULL,
colors = NULL,
font = NULL,
js_plugins = NULL
)
hc_theme |
Character or |
gg_theme |
Character, ggplot2 theme object, or |
colors |
Character vector, palette name, or |
font |
Character or |
js_plugins |
Character vector or |
Per-figure overrides are provided via hd_opts(), which always take
precedence over these session defaults.
The previous option values invisibly; pass to options() to
restore.
hd_opts() for per-figure overrides
hd_set_theme(hc_theme = "economist", gg_theme = "classic",
colors = c("#025169", "#7C145C", "#C68803"))
# Reset
hd_set_theme(hc_theme = "default", gg_theme = "minimal", colors = "hdir")
hd_reset_theme()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.