glmnet::glmnet
Autoplot glmnet::glmnet
# S3 method for glmnet
autoplot(
object,
xvar = c("norm", "lambda", "dev"),
label.n = 7,
label = TRUE,
label.label = "Df",
label.colour = NULL,
label.alpha = NULL,
label.size = NULL,
label.angle = NULL,
label.family = NULL,
label.fontface = NULL,
label.lineheight = NULL,
label.hjust = NULL,
label.vjust = NULL,
xlim = c(NA, NA),
ylim = c(NA, NA),
log = "",
main = NULL,
xlab = NULL,
ylab = "Coefficients",
asp = NULL,
...
)
ggplot
glmnet::glmnet
instance
values to be dranw on the X axis. Either "norm" (L1-norm), "lambda" (log-lambda sequence) or "dev" (percent deviance)
Number of Df labels
Logical value whether to display labels
Column name used for label text
Colour for text labels
Alpha for text labels
Size for text labels
Angle for text labels
Font family for text labels
Fontface for text labels
Lineheight for text labels
Horizontal adjustment for text labels
Vertical adjustment for text labels
limits for x axis
limits for y axis
which variables to log transform ("x", "y", or "xy")
character vector or expression for plot title
character vector or expression for x axis label
character vector or expression for y axis label
the y/x aspect ratio
other arguments passed to methods
if (FALSE) {
autoplot(glmnet::glmnet(data.matrix(Orange[-3]), data.matrix(Orange[3])))
}
Run the code above in your browser using DataLab