Linear function in abline
I have a dataframe with values of B, P anda e, so i want to make a plot like this, but the problem is this black line that touch the y axis in 1.0 and x axis past 1.0 , it should be like a function where every point is given by the function B + P = e, but i don’t know how to make that condition to plot that line in abline. someone give me a light?
This is the code that i made, that already have the points, but I need them to be distinguished by color, like the example, and that diagonal line