e_geo family is similar to e_geo_3d
e_map, e_map_3d or e_globe.
GeoJSON
The companion package echarts4r.maps comes with 215 maps.
You can install the package with:
install.packages("remotes")
remotes::install_github('JohnCoene/echarts4r.maps')View the full list of maps with
echarts4r.maps::em_bank().
library(echarts4r.maps)
flights <- read.csv(
  paste0("https://raw.githubusercontent.com/plotly/datasets/",
         "master/2011_february_aa_flight_paths.csv")
)
flights |> 
  e_charts() |> 
  em_map("USA") |>
  e_geo("USA") |> 
  e_lines(
    start_lon, 
    start_lat, 
    end_lon, 
    end_lat,
    name = "flights",
    lineStyle = list(normal = list(curveness = 0.3))
   )You can also use your own geoJSON with
e_map_register.
