efunnel: Add funnel

Description Usage Arguments See Also Examples

View source: R/add.R

Description

Add funnel

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
efunnel(p, serie, name = NULL, clickable = TRUE, legendHoverLink = TRUE,
  sort = "descending", min = NULL, max = NULL, x = 80, y = 60,
  x2 = 80, y2 = 60, width = NULL, height = NULL,
  funnelAlign = "center", minSize = "0%", maxSize = "100%", gap = 0,
  tooltip, ...)

efunnel_(p, serie, name = NULL, clickable = TRUE, legendHoverLink = TRUE,
  sort = "descending", min = 0, max = NULL, x = 80, y = 60, x2 = 80,
  y2 = 60, width = NULL, height = NULL, funnelAlign = "center",
  minSize = "0%", maxSize = "100%", gap = 0, tooltip, ...)

Arguments

p

an echart object.

serie

values to plot.

name

name of serie.

clickable

whether segments are clickable.

legendHoverLink

enables legend hover link.

sort

data sorting, takes descending or ascending.

min, max

minimum and maximum values of funnel.

x, y, x2, y2

coordinates of funnel.

width, height

width and height of funnel.

funnelAlign

alignment of funnel takes left, right and center.

minSize, maxSize

minimum and maximum size of funnel.

gap

gap between segments.

tooltip

cutomise tooltip.

...

any other argument to pass to funnel.

See Also

official funnel docs

Examples

1
2
3
4
5
funnel <- data.frame(stage = c("View", "Click", "Purchase"), value = c(80, 30, 20))

funnel %>%
  echart(stage) %>%
  efunnel(value)

JohnCoene/echarts documentation built on May 22, 2021, 6:18 p.m.