Usage
## S3 method for class 'glmnet.cr':
plot(x, xvar = c("norm", "lambda", "step"),
type = c("coefficients", "aic", "bic"), omit.zero = TRUE, breaks = TRUE, mar = NULL,
eps = .Machine$double.eps, main = NULL, ...)
Arguments
xvar
horizontal axis. xvar=norm
plots against the L1 norm of the coefficients (to which L1 norm penalty was applied); xvar=lambda
plots against $\lambda$; and xvar=step
plots against the number of steps taken. Default is
type
type of the plot, or the vertical axis. Default is "coefficients".
omit.zero
If TRUE
and type="coefficients"
, the predictors that were never in the active set are omitted.
breaks
If TRUE
, vertical lines are drawn at the points where the active set changes and numbered with the degrees of freedom.
mar
margin relative to the current font size
...
other options for the plot