rmapspostal-code

Searching for postal code map of Germany for R


I'm searching for a map of Germany which is divided into the different postal codes and could be coloured in R. Possible would be a map like this on wikipedia:

https://upload.wikimedia.org/wikipedia/commons/c/cd/Karte_Paketzentren_Deutsche_Post_AG.png

Is there any package which is supporting this?


Solution

  • You can download the Geojson (I advise this format) from https://public.opendatasoft.com/explore/dataset/georef-germany-postleitzahl/export/

    You can then read the Geojson with the sf package. You will find support for this on stackoverflow. Through the sf package you will have graphing possibilities with various other packages. You can also download shapefiles for "Landkreis" and other administrative areas in Germany on this site.