Re: [R] How to plot the regression line of multivariable linear model?

2016-09-20 Thread Greg Snow
You might consider the Predict.Plot and TkPredict functions in the TeachingDemos package. These help you explore multiple linear regression models by plotting the "line" relating the response to one of the predictors at given values of the other predictors. These lines can be combined in a

Re: [R] How to plot the regression line of multivariable linear model?

2016-09-18 Thread Ismail SEZEN
> Specifically my model has one response and two predictors, i.e. it's of the > form > > Y = b_0+b_1*X_1+b_2*X_2 > > Plotting the regression line for a single predictor model > > Y = b_0+b_1*X_1 > > is simple enough, just call abline() with the coefficients returned by lm(). Single variable