I have a plot
plot(wine$AGST ~ wine$Price, xlab="Price", ylab = "AGST", pch = 19)
and want to draw a regression line ie
abline(lm(Price ~ AGST, data=wine))
but facing error ie
abline(mod01) Warning messages: 1: In doTryCatch(return(expr), name, parentenv, handler) : "lm" is not a graphical parameter 2: In doTryCatch(return(expr), name, parentenv, handler) : "lm" is not a graphical parameter abline(lm(Price ~ AGST, data=wine)) Warning messages: 1: In doTryCatch(return(expr), name, parentenv, handler) : "lm" is not a graphical parameter 2: In doTryCatch(return(expr), name, parentenv, handler) : "lm" is not a graphical parameter abline(lm(Price ~ AGST, data=wine)) Warning messages: 1: In doTryCatch(return(expr), name, parentenv, handler) : "lm" is not a graphical parameter 2: In doTryCatch(return(expr), name, parentenv, handler) : "lm" is not a graphical parameter
plot(mtcars$mpg ~ mtcars$wt) ; abline(lm(mpg ~ wt, mtcars))(note: I think your lm variables should be reversdlm(AGST ~ Price, data=wine)) - user20650