[R] plot SVM

2006-12-07 Thread Aimin Yan
I use svm , then I want to do like this
But give me this error. Does anyone know how to solve these?

Aimin

  plot(m.svm,p5.new,As~Cur)
Error in scale(newdata[, object$scaled, drop = FALSE], center = 
object$x.scale$scaled:center,  :
 (subscript) logical subscript too long

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] plot svm

2005-07-01 Thread bgmail
Hello
I'm working with DNA microarrays and want to classify them with SVM.  I 
want to plot the results and it's imposible for me. I found others 
tutorials and examples (with iris and cats data) where you can plot the 
results with plot.svm, but you need to write a formula and I don't know 
how to do this with golubEsets data, for example .

plot ( svm1,  golubTrain,  formula)

For example, Iris Data:  
   Sepal.Length   Sepal.Width   Petal.Length   Petal.WidthSpecies
15.1   3.51.4
0.2setosa
24.9   3.01.4
0.2setosa
34.7   3.21.3
0.2setosa
44.6   3.11.5
0.2setosa
55.0   3.61.4
0.2setosa
65.4   3.91.7
0.4setosa
74.6   3.41.4
0.3setosa
85.0   3.41.5
0.2setosa

m2 - svm(Species~., data = iris)
plot(m2, iris, Petal.Width ~ Petal.Length, slice = list(Sepal.Width = 3, 
Sepal.Length = 4))

I should be grateful if you would send me information about how to plot 
the golubEsets data (for example the formula, because I have tested 
several options but neither of them work). My data are very similar 
(expression values with several conditions), so I could plot my results 
if I knew how to plot golub data.

Thanks a lot

Beatriz

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html