安装rgdal软件包。如果已经完成安装: library(rgdal) > "GeoJSON" %in% ogrDrivers()$name [1] TRUE 那么你可以这样做:> map = readOGR("foo.json", "OGRGeoJSON") > plot(map) 但是您需要在ogrDrivers列表中支持GeoJSON。
rJSON
包吗? - Carl Witthoftcode markdown
,而不是在句子的部分中使用,例如“choropleth maps”。 - S.L. Barth