Learn R Programming

echarts4r (version 0.2.0)

e_color: Color

Description

Customise chart and background colors.

Usage

e_color(e, color = NULL, background = NULL)

Arguments

e

An echarts4r object as returned by e_charts.

color

Vector of colors.

background

Background color.

See Also

e_theme, https://ecomfe.github.io/echarts-doc/public/en/option.html#color, https://ecomfe.github.io/echarts-doc/public/en/option.html#backgroundColor

Examples

Run this code
# NOT RUN {
mtcars %>% 
  e_charts(drat) %>% 
  e_line(mpg) %>% 
  e_area(qsec) %>% 
  e_color(
    c("red", "blue"),
    "#d3d3d3"
  )
  
# }

Run the code above in your browser using DataLab