addGeoCoord: Add 'geoCoord' to An Echarts Object

Description Usage Arguments Value References

View source: R/options.R

Description

Add geoCoord object to echarts object. It is used for maps.

For maps with a timeline, geoCoord object is added to options[[1]]$series[[1]], while for those without a timeline, it is added to series[[1]].

Usage

1
2
3
addGeoCoord(chart, geoCoord = NULL, mode = c("add", "overide"))

overideGeoCoord(chart, geoCoord = NULL)

Arguments

chart

chart echarts object generated by echart or echartR

geoCoord

Two mode:

list

A typical geoCoord list should be: list(place1=c(lng1, lat1), ...)

data.frame

A data.frame of 3 columns: place, longitude, latitude

mode

'add' or 'overide' geoCoord to the echarts object. Default 'add'. You can use overideGeoCoord to overide existing geoCoord.

Value

A modified echarts object

References

http://echarts.baidu.com/echarts2/doc/option.html#title~series-i(map).geoCoord


madlogos/recharts2 documentation built on May 21, 2019, 11:03 a.m.