[R] Create a heat map with German postal codes
Paul Tremblay
paulhtremblay at gmail.com
Fri Feb 6 23:37:56 CET 2015
Hi,
I am tasked with making a map of German postal codes for a few major cities
in Germany. Each postal code will have a differnt color, depending on a
metric. For simplicity, let's just use population density.
This is what I have achieved so far for London (which I used as an
example). I have been able to create a base map using the tutorials. I was
able to import a shapefile of postal codes and display that on the map. I
was able to create points on the map.
What I am not able to do is color in each postal code according to density.
The other problem I have is with actually creating a map that zooms in on
the right area. I know you can limit the area with xlim and ylim, but I
can't figure out sensible values for eacy of these parameters.
I have not found a shapefile yet for German postal codes.
Last, should I use worldmaps, or a more recent package such as ggmap or
rworldmap? I have seen that worldmaps is very outdated.
We have commercial software such as Tableau and Map Point (since
discontinued) floating around here. Both of these software automatically
map districts for US and London postal codes. However, I would like to use
an open source solution if for no other reason than these commercial
software might not work for other regions, and R seems better to extend for
special cases.
Thanks!
Paul
[[alternative HTML version deleted]]
More information about the R-help
mailing list