Displaying 1 result from an estimated 1 matches for "n1689526".
2010 Mar 24
1
GGPLOT2: Reverse order of legend to match order of x-axis
...p <- qplot(factor(cyl), data=mtcars, geom="bar", fill=factor(gear))
p + scale_colour_manual(name = "gear",values = colors,breaks =
c("5","4","3"),labels = c("5 speed","4 speed","3 speed"))
http://n4.nabble.com/file/n1689526/plot.jpeg
--
View this message in context: http://n4.nabble.com/GGPLOT2-Reverse-order-of-legend-to-match-order-of-x-axis-tp1689526p1689526.html
Sent from the R help mailing list archive at Nabble.com.