ggcharts_get_theme {ggcharts} | R Documentation |
Get and Set the Currently Active ggcharts Theme
Description
The current theme is automatically applied to any plot created with
ggcharts
. It does not affect plots created with ggplot2
.
Usage
ggcharts_get_theme()
ggcharts_set_theme(theme, ...)
Arguments
theme |
|
... |
Additional argument passed onto the specified |
Value
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
.
Author(s)
Thomas Neitmann
Examples
data("diamonds", package = "ggplot2")
## By default `theme_ggcharts()` is used
ggcharts_get_theme()
bar_chart(diamonds, cut)
ggcharts_set_theme("theme_hermit")
bar_chart(diamonds, cut)
ggcharts_set_theme("theme_ng")
bar_chart(diamonds, cut)
ggcharts_set_theme("theme_nightblue", base_size = 16, base_family = "serif")
bar_chart(diamonds, cut)
## Restore the default
ggcharts_set_theme("theme_ggcharts")
[Package ggcharts version 0.2.1 Index]