powered by
Add a funnel.
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, ...)
e_funnel_(e, values, labels, name = NULL, legend = TRUE, rm_x = TRUE, rm_y = TRUE, ...)
An echarts4r object as returned by e_charts.
echarts4r
e_charts
Values and labels of funnel.
name of the serie.
Whether to add serie to legend.
Whether to remove x and y axis, defaults to TRUE.
TRUE
Any other option to pass to bar or line char types.
bar
line
No bind argument here, with a funnel bind = labels.
bind
labels
Additional arguments
# 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