Re: [R] extract hyperplan from e1071 model

2018-12-20 Thread Sarah Goslee
Hi, Please don't forget to copy R-help on your reply - other people are likely to have more insight. My understanding is that you want to replicate the shaded polygons produced by plot.svm on your own plot. That's why I suggested you first try add=TRUE, and if that doesn't work, then look at the

Re: [R] extract hyperplan from e1071 model

2018-12-20 Thread Sarah Goslee
Hi, According to the help for svm, which you probably should have started with, SV contains the support vectors, and index contains the position of the support vectors in the data matrix. As for plotting, plot.svm lets you pass additional options to plot so that you can customize the plot to your

[R] extract hyperplan from e1071 model

2018-12-20 Thread Luigi Marongiu
Dear all, I am using the package e1071 for modeling SVM. I obtain a model from the data and I can plot the results; the plot shows the support vectors (as 'X's) and the shaded areas as it should be. However, I don't like the plot generated from the model and I would like instead to have more contro