plot_lambdas: Plot cross-validated glmnet lambdas across outer folds

View source: R/plots.R

plot_lambdasR Documentation

Plot cross-validated glmnet lambdas across outer folds

Description

Plot of cross-validated glmnet lambda parameter against deviance for each outer CV fold.

Usage

plot_lambdas(
  x,
  scheme = NULL,
  palette = "Dark 3",
  showLegend = if (x$outer_method == "cv") "topright" else NULL,
  ...
)

Arguments

x

Fitted "nestcv.glmnet" object

scheme

colour scheme

palette

palette name (one of hcl.pals()) which is passed to hcl.colors

showLegend

Either a keyword to position the legend or NULL to hide the legend.

...

other arguments passed to plot. Use type = 'p' to plot a scatter plot instead of a line plot.

Value

No return value

Author(s)

Myles Lewis

See Also

nestcv.glmnet


nestedcv documentation built on Dec. 5, 2022, 5:25 p.m.