plot.iregnet: Plot the path of the variables of iregnet fit

Description Usage Arguments Details Value

View source: R/plot.iregnet.R

Description

Produces a coefficient profile plot of the coefficient paths for a fitted "iregnet" object.

Usage

1
2
3
## S3 method for class 'iregnet'
plot(x, xvar = c("norm", "lambda"), label = TRUE,
  ...)

Arguments

x

The S3 object of type iregnet returned by the iregnet method.

xvar

Variable on the X-axis against which the coefficients are plotted. norm plots against the L1 norm of the coefficients, i.e., arclength. lambda plots against log-lambda sequence.
Default: "norm"

label

If TRUE, coefficient names / variable sequence numbers are plotted along with the curves.

...

Other parameters. Currently unused.

Details

This function uses tidydf function to obtain a data.frame from the iregnet object. ggplot is used for the plotting It can be directly used to produce other plots. Intercept (if present) is not included in the arclength since it is never regularized. It is also not plotted.

Value

object of class "ggplot"


anujkhare/iregnet documentation built on Aug. 23, 2019, 8:24 p.m.