Learn R Programming

ggfortify (version 0.4.17)

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

Description

Convert glmnet::glmnet to data.frame

Usage

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

Value

data.frame

Arguments

model

glmnet::glmnet instance

data

original dataset, if needed

...

other arguments passed to methods

Examples

Run this code
if (FALSE) {
fortify(glmnet::glmnet(data.matrix(Orange[-3]), data.matrix(Orange[3])))
}

Run the code above in your browser using DataLab