plot.PCLasso: Plot coefficients from a PCLasso object

Description Usage Arguments See Also Examples

View source: R/plot.PCLasso.R

Description

Produces a plot of the coefficient paths for a fitted PCLasso object.

Usage

1
2
## S3 method for class 'PCLasso'
plot(x, norm = TRUE, ...)

Arguments

x

Fitted PCLasso model.

norm

If TRUE, plot the norm of each group, rather than the individual coefficients.

...

Other graphical parameters to plot.

See Also

PCLasso

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# load data
data(GBM)
data(PCGroup)

x = GBM$GBM.train$Exp
y = GBM$GBM.train$survData

# fit the PCLasso model
fit1 <- PCLasso(x, y, group = PCGroup, penalty = "grLasso")

# plot the norm of each group
plot(fit1, norm = TRUE)

# plot the individual coefficients
plot(fit1, norm = FALSE)

weiliu123/PCLassoCox documentation built on Dec. 23, 2021, 5:10 p.m.