plot the svm solution at a step along the path
produces a plot of the svm solution along the path, and optinally indicates support points
## S3 method for class 'svmpath' plot(x, step, Size = 60, elbow.show = TRUE, support.show = TRUE, ...)
x
: the svmpath
objectstep
: which step to plot; default is the last step. Use summary
to see how many stepsSize
: If the solution is non-linear, this is the gridsize for countour
elbow.show
: Should the points on the elbow be indicatedsupport.show
: Should the support points be indicated...
: additional arguments to plot, allowing one to change, for example, "main", "xlab" etcA two-dimensional plot is produced of the SVM solution. Makes sense only if X is two-dimensional. If not, the first two dimensions will be used
A list is returned silently, with the ingredients of the plot
The paper http://www-stat.stanford.edu/~hastie/Papers/svmpath.pdf, as well as the talk http://www-stat.stanford.edu/~hastie/TALKS/svmpathtalk.pdf.
Trevor Hastie
coef.svmpath, svmpath, predict.svmpath, print.svmpath,summary.svmpath
data(svmpath) attach(balanced.overlap) fit <- svmpath(x,y,trace=TRUE,plot=FALSE) plot(fit,step=2) detach(2)