问题
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