Re: [R] how add objects to an svm graphic

2004-05-15 Thread ale . ambrosi
Hi all, First of all thanks for the answers. I'd like to add some objects to a plot.svm graphic. To give a more precise idea here I make a simple example. First I train a SVM. m.svm - svm(status~., data = dati.svm, kernel=radial, cross=20, scale=TRUE ) Then I generates a

RE: [R] how add objects to an svm graphic

2004-05-14 Thread Liaw, Andy
You probably won't be able to do that without modifying plot.svm(). It calls filled.contour() like this: filled.contour(xr, yr, matrix(as.numeric(preds), nr = length(xr), byrow = TRUE), plot.axes = { axis(1) axis(2)