This functions plots the aggregated cross-validation curve produced by
rcv.glmnet()
or the lambda path for the averaged glmnet.fit object.
rcv.glmnet
, object.
character
, uses glmnet::plot.cv.glmnet()
for "cv" and
glmnet::plot.glmnet()
for "path".
further arguments passed to plot.cv.glmnet
or plot.glmnet
.
For what = "path"
the original plot.glmnet
is extended by labelling the
top nlabel
(default: 9) labels on the right side of the plot.