cosname / recharts

An interface to ECharts
https://recharts.cosx.org
BSD 3-Clause "New" or "Revised" License
337 stars 150 forks source link

将示例代码保存在文件中,使用Rscript执行,无法显示地图 #54

Open qiaoD opened 6 years ago

qiaoD commented 6 years ago

在交互式命令行中,eMap()可以显示绘制的地图 但是当使用 Rscript test.r执行脚本时, 地图无法绘制。

Lchiffon commented 6 years ago

有什么报错呢?

qiaoD commented 6 years ago

您好,没有报错。。。

qiaoD commented 6 years ago

是不是浏览器的问题呢?

qiaoD commented 6 years ago

https://github.com/qiaoD/R/blob/master/map.r 这个是代码,谢谢。

Lchiffon commented 6 years ago

可能是cmd没法打开浏览器,你转存html文件可以接受不

e1 = eMap(mapData, namevar=~province, datavar=~count)
htmlwidgets::saveWidget(e1, 'e1.html')
qiaoD commented 6 years ago

htmlwidgets::saveWidget(e1,'e1.html')` 您好,再问一下,这个是需要新安装一个包吗?

Lchiffon commented 6 years ago

这个包是自动安装好的