emap_line_effect: emap line effect

Description Usage Arguments Examples

View source: R/helpers.R

Description

Effect for emap lines

Usage

1
2
emap_line_effect(show = TRUE, loop = TRUE, period = 30, scaleSize = 1,
  color = "#fff", shadowBlur = 10, shadowColor = NULL, ...)

Arguments

show

set to TRUE to show effect.

loop

set to TRUE to loop animation.

period

period loop.

scaleSize

scale.

color

color.

shadowBlur

blur.

shadowColor

color of shadow.

...

any other option to pass to effect.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
coords <- data.frame(city = c("London", "New York", "Beijing", "Sydney"),
  lon = c(-0.1167218, -73.98002, 116.3883, 151.18518),
  lat = c(51.49999, 40.74998, 39.92889, -33.92001))

edges <- data.frame(source = c("Beijing", "Beijing", "New York"),
  target = c("Sydney", "London", "London"))

coords %>%
  echart(city) %>%
  emap() %>%
  emap_coords(lon, lat) %>%
  emap_lines(edges, source, target, effect = emap_line_effect())

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