sorry if i\'m missing something fundamental about how colorRampPalette and brewer.pal work, but how can you create a qualitative color gradient based o
colorRampPalette
brewer.pal
i believe that something like this is the solution, although i can't believe there isn't a smarter way to do it.
https://stackoverflow.com/a/26573256/1759499