我正在研究俄罗斯各地区应有的疾病发病率。我试图在RStudio中使用googleVis显示图表。不幸的是,gvisGeoChart仅显示空地图。
也许区域匹配不正确?
我从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)))