Posts

Showing posts from August, 2021

Colored country maps with ggplot Part 1

Image
After a long absence today an easy guide to print maps with ggplot. First we need a map. As example we use a map of Austria on local community (Gemeinden) level. An ideal data format ist JSON. For Austria one source for this maps is here: https://github.com/ginseng666/GeoJSON-TopoJSON-Austria You can choose between three detail levels. For our needs we can stick with the lowest detail level. So the file we are interested in is: "gemeinden_999_geo.json" What to show? For experimental purposes we use the vaccination rate on local community level, which can be downloaded here. Of course it is crucial to have the same detail level in your data as in your map!: https://info.gesundheitsministerium.at/opendata The file we are looking for is here: https://www.data.gv.at/katalog/dataset/covid-19-schutzimpfungen-impfungen-in-gemeinden/resource/89ad8077-0318-4dfb-953f-0824754b5adc I am not sure if this link is persistent, so you have to look for a file named impfungen-gemeinden.csv As w...