plot.arcv.glmnet: Plot the elastic net cross-validation curves

View source: R/arcv.glmnet.R

plot.arcv.glmnetR Documentation

Plot the elastic net cross-validation curves

Description

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

Usage

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

Sebastian Gibb

See Also

glmnet::cv.glmnet()


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