e_geo: Geo

Description Usage Arguments See Also Examples

View source: R/geo.R

Description

Initialise geo.

Usage

1
e_geo(e, map = "world", ..., rm_x = TRUE, rm_y = TRUE)

Arguments

e

An echarts4r object as returned by e_charts or a proxy as returned by echarts4rProxy.

map

Map type.

...

Any other option to pass, check See Also section.

rm_x, rm_y

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

See Also

Additional arguments

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
flights <- read.csv(
  paste0(
    "https://raw.githubusercontent.com/plotly/datasets/",
    "master/2011_february_aa_flight_paths.csv"
  )
)

flights |>
  e_charts() |>
  e_geo() |>
  e_lines(
    start_lon,
    start_lat,
    end_lon,
    end_lat,
    name = "flights",
    lineStyle = list(normal = list(curveness = 0.3))
  )

JohnCoene/echarts4 documentation built on July 27, 2021, 5:20 p.m.