[R] Plot error

Richard.Cotton at hsl.gov.uk Richard.Cotton at hsl.gov.uk
Mon Jan 7 10:33:24 CET 2008


> 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}}




More information about the R-help mailing list