Add a custom theme or apply a pre-built one.
Usage
e_theme(
e,
name = c("auritus", "azul", "bee-inspired", "blue", "caravan", "carp", "chalk", "cool",
"dark-blue", "dark-bold", "dark-digerati", "dark-fresh-cut", "dark-mushroom", "dark",
"eduardo", "essos", "forest", "fresh-cut", "fruit", "gray", "green", "halloween",
"helianthus", "infographic", "inspired", "jazz", "london", "macarons", "macarons2",
"mint", "purple-passion", "red-velvet", "red", "roma", "royal", "sakura", "shine",
"tech-blue", "vintage", "walden", "wef", "weforum", "westeros", "wonderland")
)
e_theme_custom(e, theme, name = "custom")
e_theme_register(theme, name = "custom")
Arguments
- e
An
echarts4r
object as returned bye_charts
or a proxy as returned byecharts4rProxy
.- name
Name of theme.
- theme
Theme, A json string or a see below.
Details
The function e_theme_register
can be used to register the theme globally
in R markdown or shiny (UI). This is useful because 1) the e_theme_custom
registers the
theme every time and is more computationally expensive.
Functions
e_theme
- Use a default theme by name.e_theme_custom
- Use a custom theme.e_theme_register
- Register a theme globally in shiny or R markdown.