## a simple example
library(MASS)
data(cats)
m <- svm(Sex~., data = cats)
plot(m, cats)
## more than two variables: fix 2 dimensions
data(iris)
m2 <- svm(Species~., data = iris)
plot(m2, iris, Petal.Width ~ Petal.Length,
slice = list(Sepal.Width = 3, Sepal.Length = 4))
Run the code above in your browser using DataLab