REmap(0.3.2)有个bug~

REmap(0.3.2)是一个R与Echarts的地图模块的接口,主要用于地图的可视化。

  1. 推荐 @yycc 的一篇文章: R可视化—迁徙/通勤图
  2. get_geo_position得到的坐标不准,应该是作者没有更新
  3. 和shiny结合会有bug,包里的例子运行不通~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
> runApp(system.file("shiny","shinyBmap", package = "REmap"))

Listening on http://127.0.0.1:6481
Warning: Error in : XML content does not seem to be XML: '{
"status":0,
"message":"ok",
"results":[
{
"name":"常州市",
"location":{
"lat":31.816791,
"lng":119.980142
},
"uid":"d154daec3431f54d057ce8f0"
}
]
}'
Stack trace (innermost first):
78: <Anonymous>
77: doWithOneRestart
76: withOneRestart
75: withRestarts
74: ( if (isHTML) warning else stop
73: XML::htmlParse
72: get_city_coord
71: get_geo_position
70: renderREmap [/Library/Frameworks/R.framework/Versions/3.3/Resources/library/REmap/shiny/shinyBmap/server.R#14]
69: func
68: output$remap
1: runApp

已经提交了issue@郎老师 求更新~

REmap效果

换房轨迹

leaflet效果

看房轨迹

京沪线各城市移动手机用户热力

喂他一颗糖