Description Usage Arguments Value
Get json map for echart4r from sp data download from GADM (raster)
1 | sp_to_json(sp = NULL, scope = NULL, std_name = TRUE)
|
sp |
Sp object. Might be downloaded from raster:getdata() |
scope |
The scope of map data: town or district. |
std_name |
Should use standard name or not |
A json map ready to feed echarts4r::e_map_register()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.