gvisGeoChart不显示俄罗斯地区

时间:2019-04-04 11:30:42

标签: r googlevis geomap

我正在研究俄罗斯各地区应有的疾病发病率。我试图在RStudio中使用googleVis显示图表。不幸的是,gvisGeoChart仅显示空地图。

My result

也许区域匹配不正确?

我从here获得了地区名称。

对此有何想法?

region <- c("Khabarovsk Krai","Leningrad Oblast","Moscow Oblast")
region <- as.factor(region)
value <- c(12,45,22)
x <- data.frame(region,value)

library(googleVis)

plot(gvisGeoChart(x, locationvar="region", colorvar="value",
                  options=list(region="RU",
                               displayMode="regions",
                               resolution="provinces",
                               width=600, height=400)))

0 个答案:

没有答案