powered by
Extract hexadecimal colors from a color palette
palette2colors(name, reverse = FALSE)
The name of color palette from RColorBrewer package
Whether or not reverse the order of colors
hexadecimal colors
# NOT RUN { require(RColorBrewer) require(magrittr) palette2colors("Reds") ztable(head(mtcars,10)) %>% addColColor(cols=1:12,bg=palette2colors("Set3")) # }
Run the code above in your browser using DataLab