I'm creating a series of reference maps that need to differentiate between administrative regions within a country. I created a new color ramp using ColorBrewer Dark2 with 8 categories.
My administrative units are in sequential order, so when I classify them, the color ramp groups them in order, like so:
Thus far, I have been doing all stylizing by manually changing each administrative region's color so that none of the same colored polygons are touching and there are roughly the same number of each color within a country (so 3 pinks, 3 purples, 3 yellows, etc.). I want to be able to automate this process. I think that I need to use rule-based rendering, but I'm not sure how?
Can anyone point me in the right direction for automating this stylization? I get the feeling that I'll need to use some sort of if-then statement to loop through the regions, but this is not my area of expertise.
(Also, I'm using NaturalEarthData shapefiles with custom GIDs if anyone is interested in recreating my polygons.)