title: how to get residuals plot in ridge regression in r
body: <pre><code>model=lm.ridge(mpg~.,data=mtcars,lambda=seq(0,1000,.1))
  select(model)
  model1=lm.ridge(mpg~.,data=mtcars,lambda=14.9)
  </code></pre>
  
  <p>I got a ridge regression model
  However, I want to get this kind of plot as shown below:</p>
  
  <p><a href="https://i.stack.imgur.com/PRelr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PRelr.png" alt="enter image description here"></a></p>
  
  <p>But I find I cannot use</p>
  
  <pre><code>plot(model1)
  </code></pre>
  
  <p>directly
  So, what should I do?</p>