plot.rcv.glmnet: Plot the cross-validation curve/lambda path

View source: R/rcv.glmnet.R

plot.rcv.glmnetR Documentation

Plot the cross-validation curve/lambda path

Description

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

Usage

## S3 method for class '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(s)

Sebastian Gibb

See Also

glmnet::cv.glmnet(), glmnet::plot.cv.glmnet(), glmnet::plot.glmnet()


ampel-leipzig/ameld documentation built on Aug. 23, 2024, 7:31 p.m.