This functions plots the aggregated cross-validation curves produced by arcv.glmnet().

# S3 method for arcv.glmnet
plot(
  x,
  col = viridisLite::cividis(length(x$alpha)),
  what = c("all", "lambda.min", "lambda.1se"),
  main = NULL,
  pch = 20L,
  ...
)

Arguments

x

arcv.glmnet object.

col

character/numeric, colours.

what

character(1), what to plot: "all" plot all cross-validated loss errors vs lambda of all alpha values, "lambda.min"/"lambda.1se" plots the "best" lambda for each alpha.

main

character(1), title.

pch

character/numeric, point character/symbol.

...

further arguments passed to plot.

Author

Sebastian Gibb