美国国家地图在R

时间:2018-05-14 14:41:53

标签: r

我试图在R中使用代码映射,但我一直收到此错误......我该怎么办?

map('usa')
Error in eval(parse(text = dbname)) : 
  cannot open file '~/R/win-library/3.5/maps/data/Rdata.rdb': No such file or directory
In addition: Warning message:
In eval(parse(text = dbname)) : restarting interrupted promise evaluation

library("maps")

谢谢!

1 个答案:

答案 0 :(得分:0)

我假设您已将数据存储在文件中,因此请尝试:

library("maps")    
load('~/R/win-library/3.5/maps/data/Rdata.rdb')

或尝试:

library("maps")
map('usa')