plot(c.6,d.6, xlab="A55 ", ylab="A41", main="H3",cex.main=1)
abline(lm(d.6 ~ c.6),col="red")
This code works fine, but I want to add two more lines: one where y=x+2 and x=y+2
I would like to add these two lines to visualize those values that fall outside of the lines.
You can use the
abline
function:See
?abline
:So, for a specific regression, you could use something like this: