plot.dcsvm | R Documentation |
Plots the solution paths as a coefficient profile plot for a fitted dcsvm
model.
## S3 method for class 'dcsvm'
plot(x, xvar = c("norm", "lambda"), color = FALSE, label = FALSE, ...)
x |
A fitted |
xvar |
Specifies the X-axis. If |
color |
If |
label |
If |
... |
Other graphical parameters to |
Plot Coefficients for Sparse Density-Convoluted SVM
Plots the solution paths for a fitted dcsvm
object.
This function generates a coefficient profile plot showing the solution paths of the sparse density-convoluted SVM.
No return value, only called for plots.
print.dcsvm
, predict.dcsvm
, coef.dcsvm
, plot.dcsvm
, and cv.dcsvm
.
data(colon)
fit <- dcsvm(colon$x, colon$y)
oldpar <- par(mfrow = c(1,3)) #changes par() and stores original par()
# Plots against the L1-norm of the coefficients
plot(fit)
# Plots against the log-lambda sequence
plot(fit, xvar="lambda", label=TRUE)
# Plots with colors
plot(fit, color=TRUE)
# Reset to user's option
par(oldpar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.