Learn R Programming

echarts4r (version 0.1.1)

e_funnel: Funnel

Description

Add a funnel.

Usage

e_funnel(e, values, labels, name = NULL, legend = TRUE, rm.x = TRUE,
  rm.y = TRUE, ...)

e_funnel_(e, values, labels, name = NULL, legend = TRUE, rm.x = TRUE, rm.y = TRUE, ...)

Arguments

e

An echarts4r object as returned by e_charts.

values, labels

Values and labels of funnel.

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 to bar or line char types.

Details

No bind argument here, with a funnel bind = labels.

See Also

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

Examples

Run this code
# NOT RUN {
funnel <- data.frame(stage = c("View", "Click", "Purchase"), value = c(80, 30, 20))

funnel %>% 
  e_charts() %>% 
  e_funnel(value, stage)

# }

Run the code above in your browser using DataLab