em_maps: Maps

Description Usage Arguments Details Examples

View source: R/em_maps.R

Description

Add map dependency to e_charts chart. It can combine two or more countries into one plot.

Usage

1

Arguments

e

An object of class echarts4r.

maps

Map names, a vector of countries.

name

the regist map name which can be used in e_map

Details

essentially a wrapper to e_map_register.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
maps <- c("China","Japan") 
library(echarts4r)  

e_charts() %>% 
   em_maps(maps,"user") %>% 
   e_map(map = "user") 

## End(Not run)

JohnCoene/echarts4r.maps documentation built on March 14, 2020, 10:26 a.m.