Learn R Programming

echarts4r (version 0.1.1)

e_pie: Pie

Description

Draw pie and donut charts.

Usage

e_pie(e, serie, name = NULL, legend = TRUE, rm.x = TRUE,
  rm.y = TRUE, ...)

e_pie_(e, serie, name = NULL, legend = TRUE, rm.x = TRUE, rm.y = TRUE, ...)

Arguments

e

An echarts4r object as returned by e_charts.

serie

Column name of serie to plot.

name

name of the serie.

legend

Whether to add serie to legend.

rm.x, rm.y

Whether to remove x and y axis, defaults to TRUE.

...

Any other option to pass, check See Also section.

See Also

https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pie

Examples

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

Run the code above in your browser using DataLab