This functions plots the aggregated cross-validation curve produced by rcv.glmnet() or the lambda path for the averaged glmnet.fit object.

# S3 method for rcv.glmnet
plot(x, what = c("cv", "path"), ...)

Arguments

x

rcv.glmnet, object.

what

character, uses glmnet::plot.cv.glmnet() for "cv" and glmnet::plot.glmnet() for "path".

...

further arguments passed to plot.cv.glmnet or plot.glmnet.

Details

For what = "path" the original plot.glmnet is extended by labelling the top nlabel (default: 9) labels on the right side of the plot.

Author

Sebastian Gibb