Re: [R] Need Help Plotting "Line" for multiple linear regression

2013-02-14 Thread Greg Snow
The abline function works fine for simple linear regression because there is only 1 line, but with multiple linear regression there are an infinite number of lines and you need to decide which to plot (or find a way to plot t he plane/hyperplane/surface/etc.). One option is to use the Predict.Plot

Re: [R] Need Help Plotting "Line" for multiple linear regression

2013-02-14 Thread PIKAL Petr
Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Craig O'Connell > Sent: Wednesday, February 13, 2013 11:03 PM > To: r-help@r-project.org > Subject: [R] Need Help Plotting "Line" for mult

[R] Need Help Plotting "Line" for multiple linear regression

2013-02-13 Thread Craig O'Connell
Hello, My name is Craig and I need help plotting a "line" for a multiple linear regression in R. Here is my sample data (filename: convis.txt) Output of convis.txt is (vis and density being predictors of either avoidance or entrance): vis den avoid entrance 1 10 1 0. 0. 2 1