map_colour_brewer {ggplot} | R Documentation |
Map categorical variables to Brewer colour scales
map_colour_brewer(x, palette=1)
x |
data vector |
palette |
palette number to use |
If x is not a factor, will be converted to one by chop_auto
.
Can display at most 9 different categories.
Unordered factors will use qualitative scales. Ordered factors will use sequential scales. Ordered factors with negative level will use diverging scales.
Hadley Wickham <h.wickham@gmail.com>