Skip to contents

Points show the mean cross-validation metric. The whiskers use the stored lower and upper limits (one standard error). Vertical lines mark lambda.min and lambda.1se. The tooltip includes the untransformed lambda and the number of nonzero coefficients. Applies to standard cross-validation fits (relax = FALSE).

Usage

# S3 method for class 'cv.glmnet'
hchart(object, ...)

Arguments

object

A cv.glmnet fit.

...

Highcharts scatter series options.

Value

A highchart htmlwidget.

Examples

x <- as.matrix(mtcars[c("disp", "hp", "wt", "qsec")])
fit <- glmnet::cv.glmnet(x, mtcars$mpg, foldid = rep_len(1:5, nrow(x)))
hchart(fit)