plot.varImp | R Documentation |
Generic method for plotting variable importance of various models
## S3 method for class 'varImp' plot(x, ...)
x |
a |
... |
for future implementations |
varImp.glmnetsurv
data(veteran, package="survival") # glmnet gfit1 <- glmnetsurv(Surv(time, status) ~ factor(trt) + karno + diagtime + age + prior , data = veteran , lambda = 0.02 , alpha = 0.8 ) imp1 <- varImp(gfit1) plot(imp1) imp2 <- varImp(gfit1, show_sign = TRUE, scale = TRUE) plot(imp2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.