[R] Selecting / creating unique colours for behavioural / transitional data

Alexis Gabadinho alexis.gabadinho at unine.ch
Fri Mar 13 17:25:23 CET 2009

Hi Ross,

If you really need 15 colors, maybe you can use the Set3 palette 
provided by RColorBrewer (this is the one used by TraMineR up to 12 
states) and add yourself 3 more colors ?

For example (you can mix the hexadecimal color numbers from the 
RColorBrewer palette and real color names in the same vector) :

mycolors <- brewer.pal(12,"Set3")
mycolors <- c(mycolors, "blue", "green", "yellow")

All the best,

More information about the R-help mailing list