Learn R Programming

echarts4r (version 0.2.0)

e_legend: Legend

Description

Customise the legend.

Usage

e_legend(e, show = TRUE, type = c("plain", "scroll"), ...)

Arguments

e

An echarts4r object as returned by e_charts.

show

Set to FALSE to hide the legend.

type

Type of legend, plain or scroll.

...

Any other option to pass, check See Also section.

See Also

Additional arguments

Examples

Run this code
# NOT RUN {
mtcars %>% 
  head() %>% 
  dplyr::mutate(model = row.names(.)) %>% 
  e_charts(model) %>% 
  e_pie(carb) %>% 
  e_legend(FALSE)

# }

Run the code above in your browser using DataLab