title: How to enlarge colored plot of svm model in R (e1071)
body: <p>I am exploring library e1071 in R for svm classifiers and I have a problem, I cannot find solution for. I am training a linear svm classifier on some dataset. The results are as I have expected, but when I am trying to enlarge plot, it is not filled with color that represents a class. The following plot represents the problem.</p>
  
  <p><a href="https://i.stack.imgur.com/oLLpZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oLLpZ.png" alt="Plot of classifier with changed limits"></a></p>
  
  <p>Since it is a linear classifier, there should be a discriminant function computed and on that basis the whole space can be classified, so that there is no white space on the plot.</p>
  
  <p>Here is how I achieve the results:</p>
  
  <pre><code>install.packages("readxl")
  install.packages("e1071")
  library("readxl")
  library("e1071")
  data &lt;- read_excel("/path/to/your/file", col_names = FALSE)
  X = cbind(data[1], data[2])
  X = sapply(X, as.numeric)
  y = sapply(data[length(data)], as.numeric)
  y = as.factor(y)
  train.data = data.frame(X, y)
  model &lt;- svm(y ~ ., data = train.data, kernel = "linear")
  plot(model, train.data, X__2 ~ X__1, xlim = c(-0.5, 1.5), ylim = c(-0.5, 1.5), fill = TRUE)
  </code></pre>
  
  <p>The data I have used is from: <a href="http://sci2s.ugr.es/keel/dataset.php?cod=183" rel="nofollow noreferrer">http://sci2s.ugr.es/keel/dataset.php?cod=183</a></p>
  
  <p>In my case in excel file there should be only data, no column desctiption.</p>
  
  <p>In advance, thank you for your help.</p>