Trouble with get_tract_map function in R choroplthr

纵然是瞬间 提交于 2020-01-05 08:49:26

问题


I've just installed the new Choroplethr v3.6.0 and am using Ari Lamstein's blog tutorial to practice, as well as learning R, so I'm still learning to read errors.

All the example code works for me, but when I try substituting "georgia" for "new york" I get an error:

Error in ogrInfo(dsn = dsn, layer = layer, encoding = encoding, use_iconv = use_iconv,  : 
  Cannot open layer
In addition: Warning message:
In unzip(file_loc, exdir = cache_dir, overwrite = TRUE) :
  error 1 in extracting from zip file

Example:

library(choroplethr)
packageVersion("choroplethr") 

library(ggplot2)

ny = get_tract_map("new york")
ggplot(ny, aes(long, lat, group=group)) + geom_polygon()

gives me my starter map.

Problem:

ga = get_tract_map("georgia")

gives me an error. I tried several other states that worked fine.

来源:https://stackoverflow.com/questions/43480866/trouble-with-get-tract-map-function-in-r-choroplthr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!