My plot:
plot(airbnb$distance_center,airbnb$price,pch=13,xlab="distance_center",ylab="price",bty="n")
mod <- lm(price~number_people+distance_center)
Now I want to include regression lines that show the correlation of price & distance_center - including all 6 characteristics of my variable "number_people"
My idea:
abline(mod$coeff[1],mod$coeff[2],lwd=2)
abline(mod$coeff[2],mod$coeff[2],lwd=2)
abline(mod$coeff[3],mod$coeff[2],lwd=2)
Unfortunately, I don't think this is quite right, I am not sure how to make a right step. Any idea?