Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
qiaoD opened this issue Jan 8, 2018 · 7 comments

Comments

@qiaoD
Copy link

qiaoD commented Jan 8, 2018

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

@Lchiffon
Copy link
Member

Lchiffon commented Jan 9, 2018

有什么报错呢?

@qiaoD
Copy link
Author

qiaoD commented Jan 9, 2018

您好,没有报错。。。

@qiaoD
Copy link
Author

qiaoD commented Jan 9, 2018

是不是浏览器的问题呢?

@qiaoD
Copy link
Author

qiaoD commented Jan 9, 2018

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

@Lchiffon
Copy link
Member

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

e1 = eMap(mapData, namevar=~province, datavar=~count)
htmlwidgets::saveWidget(e1, 'e1.html')

@qiaoD
Copy link
Author

qiaoD commented Jan 10, 2018

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

@Lchiffon
Copy link
Member

这个包是自动安装好的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants