Error in plot, formula missing
I am trying to plot my svm model. library(foreign) library(e1071) x <- read.arff("contact-lenses.arff") #alt: x <- read.arff("http://storm.cis.fordham.edu/~gweiss/data-mining/weka-data/contact-lenses.arff") model <- svm(`contact-lenses` ~ . , data = x, type = "C-classification", kernel = "linear") The contact lens arff is the inbuilt data file in weka. However, now i run into an error trying to plot the model. plot(model, x) Error in plot.svm(model, x) : missing formula. The problem is that in in your model, you have multiple covariates. The plot() will only run automatically if your data=