I have been struggling to get the legends in ggplot2 right or do away with them altogether (on which I have already sent a post).
In the following code, the labels argument in the scale_colour_gradient2 does not give me the desired labels in the legend. Could someone explain? qplot(Year,CDR,data=b3,colour=Phase,geom=c("point","line"),legend.position="bottom")->p p+scale_colour_gradient2(limits=c(1,2), midpoint=1,low="magenta", mid="magenta", high="darkblue",breaks=c(1,2),labels=c("a","b")->p p Vikas [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.