Learn R Programming

smog (version 2.1.0)

plot.smog: plot method for objects of smog class

Description

plot.smog can produce a panel of plots for the primal errors, dual errors, and the penalized log-likelihood values, based on the provided fitted model (x) in the S3method of smog.

Usage

# S3 method for smog
plot(x, type = "l", xlab = "iteration",
  caption = list("primal error", "dual error", "log-likelihood"), ...)

Arguments

x

a fitted object of class inheriting from smog.

type, xlab

default line types and x axis labels for the panel of plots.

caption

a list of y axes labels for the panel of plots.

...

additional arguments that could be supplied to plot.default and par.

Details

For the panel of three plots, the xlab is ''iterations'' and the type is ''l'', by default. The ylab are ''primal error'', ''dual error'',''log-likelihood'', respectively. This panel of plots can reflect the convergence performance for the algorithm used in smog.

References

ma2019structuralsmog

See Also

par, plot.default, predict.smog, smog.default, cv.smog.