Re: [R] legend and values do not match in ggplot

2017-08-04 Thread Jeff Newmiller
Not possible to debug your specific problem without sample data [1][2][3], but learning how to setup and manage factors is a key skill for getting this right. You will also make it less likely that the email you send gets damaged in transit if you send plain text email instead of HTML. [1] htt

[R] legend and values do not match in ggplot

2017-08-04 Thread greg holly
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=ele