My graph looks like this:
As you can see there are 4 parameters (Treatment): NC, NF, TC, and TF. X axis shows the species number and Y shows the weight of crops. I want to draw a regression line of each with relation to species number? I tried abline but no luck.
Thanks
My code
ggplot(wheatX,aes(x=No.of.species,y=Weight,label=Treatment))+geom_point()+geom_text(aes(label=Treatment),hjust=0, vjust=0) 
