Learn R Programming

echarts4r (version 0.1.1)

e_theme: Themes

Description

Add a theme.

Usage

e_theme(e, theme)

e_theme_custom(e, theme)

Arguments

e

An echarts4r object as returned by e_charts.

theme

Theme, see below.

Themes

  • dark

  • vintage

  • westeros

  • essos

  • wonderland

  • walden

  • chalk

  • infographic

  • macarons

  • roma

  • shine

  • purple-passion

  • halloween

See Also

create your own theme.

Examples

Run this code
# NOT RUN {
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"]}')

# }

Run the code above in your browser using DataLab