I'm trying to do 1D SVM plotting using e1071 package in R.
I am new to this so I not sure whether the issue is that the e1071 package do not support 1D plotting (since I could not locate any 1D plotting information here: http://www.inside-r.org/node/57517, http://www.inside-r.org/packages/cran/e1071/docs/plot.svm) or there is something wrong with my formula here.
library(e1071)
data<-iris[,4:5]
#using subset of iris as data with Species as label
model<-svm(Species~.,data)
plot(model,data)
Error in plot.svm(model, data) : missing formula.
plot(model,data,Petal.Width~.)
Error in Summary.factor(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, : min not meaningful for factors
Thank you.
Update
I saw this answer which is saying that the 1D plotting is not supported in e1071. Since this answer is posted years ago, I wonder whether the 1D plotting is still not supported now.