Great R Gurus,
I am struggling to find a way to randomly mix discrete colors for my leaflet map for a large number of observations. The problem is the following command put similar colors next to each other which makes it hard to distinguish on the map.
library(leaflet)
previewColors(colorFactor("RdYlBu", domain = NULL), LETTERS[1:26])
Is there any way to mix colors in a way it becomes A,Z,B,Y and so on...
Your time to answer is highly appreciated...