The current theme is automatically applied to any plot created with
ggcharts. It does not affect plots created with ggplot2.
ggcharts_get_theme() ggcharts_set_theme(theme, ...)
| theme |
|
|---|---|
| ... | Additional argument passed onto the specified |
ggchart_set_theme invisibly returns the name of the previously active
theme as a character. ggchart_get_theme returns the name of the
currently active theme as a character.
#> [1] "theme_ggcharts"ggcharts_set_theme("theme_nightblue", base_size = 18, base_family = "serif") bar_chart(diamonds, cut)## Restore the default ggcharts_set_theme("theme_ggcharts")