将标志和国家名称添加到choropleth

时间:2018-11-27 15:59:26

标签: r choroplethr

我想在已经添加了一些小节的choropleth上添加国家标志和国家名称。

一些标准的带条的节流孔:

library(cartography)

# Some standard data on Europe
data(nuts2006)

# the choropleth
choroLayer(spdf = nuts0.spdf, df = nuts0.df, var = "pop2008" , legend.pos = "n") 

# Adding Bars onto the map
propSymbolsLayer(spdf = nuts0.spdf, df = nuts0.df, 
                 var = "pop2008", symbols = "bar", col = "#920000", 
                 legend.pos = "right", legend.title.txt = "Total\npopulation (2008)", 
                 legend.style = "c")

如果它可以接近this,那就太好了。但是显然,我仍然希望它具有一个歌舞ple和国名;)

0 个答案:

没有答案