e_theme | R Documentation |
Add a custom theme or apply a pre-built one.
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")
e |
An |
name |
Name of theme. |
theme |
Theme, A json string or a see below. |
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.
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.
mtcars |>
e_charts(mpg) |>
e_line(disp) |>
e_area(hp) |>
e_x_axis(min = 10) -> p
p |> e_theme("chalk")
p |> e_theme_custom('{"color":["#ff715e","#ffaf51"]}')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.