Learn R Programming

abess (version 0.4.9)

plot.abesspca: Creat plot from a fitted "abess" object

Description

Produces a coefficient/deviance/tuning-value plot for a fitted "abess" object.

Usage

# S3 method for abesspca
plot(x, type = c("pev", "coef", "tune"), label = FALSE, ...)

Value

No return value, called for side effects.

Arguments

x

A "abess" object.

type

The type of terms to be plot in the y-axis. One of the following: "pev" (i.e., percent of explained variance), "coef" (i.e., coefficients), and "tune" (i.e., tuning value). Default is "coef".

label

A logical value. If label = TRUE (the default), label the curves with variable sequence numbers.

...

Other graphical parameters to plot

See Also

print.abesspca, coef.abesspca, plot.abesspca.

Examples

Run this code
abess_fit <- abesspca(USArrests, support.size = 1:4, sparse.type = "kpc")
plot(abess_fit)
plot(abess_fit, type = "coef")
plot(abess_fit, type = "tune")

Run the code above in your browser using DataLab