[R] how add objects to an svm graphic

ale.ambrosi@unipd.it ale.ambrosi at unipd.it
Sat May 15 11:51:13 CEST 2004


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 scatter plot of a svm fit:

> plot.svm(m.svm, data=dati.svm, v.1 ~ v.2, slice = list(...), 
        grid = 100)

This works well.
Now I have several data frames of points relatives to different samples, 
say dati.1, dati.2,... (of course of the same kind of dati.svm). I'd like to 
add them to the plot, each with different symbol and their (elliptic) hull.
How can I do it?

BTW: Are there any way to reppresent the model giving (the idea of) a 
third dimension? 


Thanks,
Alessandro


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
Alessandro Ambrosi, Ph.D.       |
Oncological Surgical Sc. Dept.  | mail: ale.ambrosi at unipd.it
Surg. Cl. II 			|       ambrosi at stat.unipd.it
University of Padua		| fax:  +39 049 651891
via Giustiniani, 2 		| tel:  +39 049 8212055
I-35128 Padua (ITALY)           | url:  www.stat.unipd.it/~ambrosi 	    
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


-------------------------------------------------
This mail sent through IMP: webmail.unipd.it




More information about the R-help mailing list