I have following codes for ggplots. The legends are given in the plot do not match with the values specified in the codes given below. Your helps highly appreciated.
Greg library(ggplot2) p <- ggplot(a,aes(x=NO_BMI_FI_beta ,y=FI_beta ,color= Super.Pathway))+ theme_bw() +theme(panel.border=element_blank()) + geom_point(size=3) p2<-p+scale_color_manual(name="Super.Pathway", labels=c("Amino Acid", "Cofactors and Vitamins", "Carbohydrate", "Energy", "Lipid", "Peptide", "Nucleotide"), values=c("Amino Acid"="red", "Cofactors and Vitamins"="purple", "Carbohydrate"="darkgreen", "Energy"="orange", "Lipid"="darkblue", "Peptide"="darkred", "Nucleotide"="blue")) p2 [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.