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) colo

[R] how add objects to an svm graphic

2004-05-14 Thread ale . ambrosi
Dear all, I'm not able to solve easily the following simple problem. I really hope someone can give me some hints. I trained an svm (e1071). Now I'd like to show the results graphically. I used plot.svm and I'd like to add some other objects to the plot: points, (coloured) ellipses to indicate s