powered by
c("None", "BrBG", "PiYG", "PRGn", "PuOr", "RdBu", "RdGy", "RdYlBu", "RdYlGn", "Spectral", "Accent", "Dark2", "Paired", "Pastel1", "Pastel2", "Set1", "Set2", "Set3", "Blues", "BuGn", "BuPu", "GnBu", "Greens", "Greys", "Oranges", "OrRd", "PuBu", "PuBuGn", "PuRd", "Purples", "RdPu", "Reds", "YlGn", "YlGnBu", "YlOrBr", "YlOrRd")
brewer.pal_extended(n, name)
brewer.pal.info
RColorBrewer
#RRGGBB
library(RColorBrewer) brewer.pal_extended(20, "BrBG") # Generate a palette of 20 colors when it cannot
Run the code above in your browser using DataLab