I'm relatively new to R and trying to create multiple geographic maps. I already managed to make one map and customise it the way it should be. However, I need to make 100+ similar maps with only one difference: the input of the thematic color. My input are two shapefiles (postal code and province in the Netherlands) and a csv-file with corresponding postal codes and several columns with paercentages to fill the areas.
example of part of the dataset (in real 100+ columns with percentages):
Below my R code which works for making one map:
This map is created:
I've been experimenting a while with all kinds of loops, but I guess my R knowledge is not sufficient. What I want is two things:
1) Make 'K1' iterate to all columns in my dataset, and 2) Save all the maps it creates with the same name (K1, K2 etc.) in it.
If you need more information, just let me know!