title: How do I plot a classification graph of a SVM in R
body: <p>I have an SVM in R and I would now like to plot the classification space for this machine. I have found some examples on the Internet, but I can't seem to make sense of them.</p>
  
  <p>My R script is as follows:</p>
  
  <pre><code>library(e1071)
  day_of_week &lt;- c(0,1,2,3,4,5,6)
  holiday &lt;- factor( c(T, F, F, F, F, F, T) )
  model &lt;- svm(day_of_week, holiday)
  plot(model, day_of_week, holiday)
  </code></pre>
  
  <p>I cannot get the plot command to work. I would like a graph something like this <a href="http://bm2.genes.nig.ac.jp/RGM2/R_current/library/e1071/man/images/plot.svm_001.png" rel="noreferrer">http://bm2.genes.nig.ac.jp/RGM2/R_current/library/e1071/man/images/plot.svm_001.png</a> </p>