autoplot.cv.glmnet | R Documentation |
glmnet::cv.glmnet
Autoplot glmnet::cv.glmnet
## S3 method for class 'cv.glmnet'
autoplot(
object,
sign.lambda = 1,
label.n = 12,
label = TRUE,
label.label = "nz",
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,
label.repel = FALSE,
xlim = c(NA, NA),
ylim = c(NA, NA),
log = "",
main = NULL,
xlab = NULL,
ylab = NULL,
asp = NULL,
...
)
object |
|
sign.lambda |
Either plot against log(lambda) (default) or its negative if |
label.n |
Number of Df labels |
label |
Logical value whether to display labels |
label.label |
Column name used for label text |
label.colour |
Colour for text labels |
label.alpha |
Alpha for text labels |
label.size |
Size for text labels |
label.angle |
Angle for text labels |
label.family |
Font family for text labels |
label.fontface |
Fontface for text labels |
label.lineheight |
Lineheight for text labels |
label.hjust |
Horizontal adjustment for text labels |
label.vjust |
Vertical adjustment for text labels |
label.repel |
Logical flag indicating whether to use |
xlim |
limits for x axis |
ylim |
limits for y axis |
log |
which variables to log transform ("x", "y", or "xy") |
main |
character vector or expression for plot title |
xlab |
character vector or expression for x axis label |
ylab |
character vector or expression for y axis label |
asp |
the y/x aspect ratio |
... |
other arguments passed to methods |
ggplot
if (requireNamespace("survival", quietly = TRUE)) {
autoplot(glmnet::cv.glmnet(data.matrix(Orange[-3]), data.matrix(Orange[3])))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.