title: Predicted vs. Actual plot
body: <p>I'm new to R and statistics and haven't been able to figure out how one would go about plotting predicted values vs. Actual values after running a multiple linear regression. I have come across similar questions (just haven't been able to understand the code). I would greatly appreciate it if you explain the code.
  This is what I have done so far:</p>
  
  <pre><code># Attach file containing variables and responses
  q &lt;- read.csv("C:/Users/A/Documents/Design.csv")
  attach(q)
  # Run a linear regression
  model &lt;- lm(qo~P+P1+P4+I)
  # Summary of linear regression results
  summary(model)
  </code></pre>
  
  <p>The plot of predicted vs. actual is so I can graphically see how well my regression fits on my actual data.</p>