Learn R Programming

ggfortify (version 0.4.17)

fortify.cv.glmnet: Convert glmnet::cv.glmnet to data.frame

Description

Convert glmnet::cv.glmnet to data.frame

Usage

# S3 method for cv.glmnet
fortify(model, data = NULL, ...)

Value

data.frame

Arguments

model

glmnet::cv.glmnet instance

data

original dataset, if needed

...

other arguments passed to methods

Examples

Run this code
if (requireNamespace("survival", quietly = TRUE)) {
  fortify(glmnet::cv.glmnet(data.matrix(Orange[-3]), data.matrix(Orange[3])))
}

Run the code above in your browser using DataLab