plot.svmpath {svmpath} | R Documentation |
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 |
step |
which step to plot; default is the last step. Use
|
Size |
If the solution is non-linear, this is the gridsize for |
elbow.show |
Should the points on the elbow be indicated |
support.show |
Should the support points be indicated |
... |
additional arguments to plot, allowing one to change, for example, "main", "xlab" etc |
A 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
Trevor Hastie
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.
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)