Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

ggplot2 reverse order of scale_brewer color

ggplot(mtcars,aes(x = mpg, y = disp)) + 
  geom_point(aes(colour = factor(cyl))) + 
  scale_colour_brewer(palette="BuPu", direction=-1)
 
PREVIOUS NEXT
Tagged: #reverse #order #color
ADD COMMENT
Topic
Name
2+9 =