title: get equation of linear SVM regression line
body: <p>I'm struggling to find a way to get the equation for a linear SVM model in the regression case, since most of the questions deal with classification... I have fit it with caret package.</p>
  
  <h1>1- univariate case</h1>
  
  <pre><code>set.seed(1)
  fit=train(mpg~hp, data=mtcars, method="svmLinear")
  plot(x=mtcars$hp, y=predict(fit, mtcars), pch=15)
  points(x=mtcars$hp, y=mtcars$mpg, col="red")
  abline(lm(mpg~hp, mtcars), col="blue")
  </code></pre>
  
  <p>Which gives the plot with red=actual, black=fitted, and blue line is classic regression. In this case I know I could manually calculate the SVM prediction line from 2 points, but is there a way to get directly the equation from the model structure? I actually need the equation like this <em>y=a+b</em>x (here <strong>mpg=?+?*hp</strong> ) with values in the original scale.</p>
  
  <p><a href="https://i.stack.imgur.com/8eXRx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8eXRx.png" alt="enter image description here"></a></p>
  
  <h1>2-multivariate</h1>
  
  <p>same question but with 2 dependent variables (<code>mpg~hp+wt</code>)
  Thanks,</p>