> Thank you so much for replying and sorry for asking so many times..
> My data is just like the example in plot.svm (package e1071) of Iris
> data of library MASS, difference is I have 7 classes 13 variables
> and 30000 observations.. I've tried the codes as in that example but
> still I got this error..
> > > plot(model, data= dados[,-1], formula=formula(dados[,2]~dados[,
> > 3]),svSymbol = 1, dataSymbol = 2, symbolPalette = rainbow(4),color.
> > palette = terrain.colors)
Having had another look at this. you problem is with the formula
component. You don't need to use the formula function, just specify
something like
formula=dados[,2]~dados[,3]
Regards,
Richie.
Mathematical Sciences Unit
HSL
------------------------------------------------------------------------
ATTENTION:
This message contains privileged and confidential inform...{{dropped:20}}
______________________________________________
[email protected] 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.