Learn R Programming

PCLassoReg (version 1.0.0)

plot.PCLasso: Plot coefficients from a PCLasso object

Description

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

Usage

# S3 method for 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.

Value

No return value, called for plotting of PCLasso objects.

See Also

PCLasso

Examples

Run this code
# NOT RUN {
# load data
data(survivalData)
data(PCGroups)

x = survivalData$Exp
y = survivalData$survData

PC.Human <- getPCGroups(Groups = PCGroups, Organism = "Human",
Type = "EntrezID")

# fit PCLasso model
fit.PCLasso <- PCLasso(x, y, group = PC.Human, penalty = "grLasso")

# plot the norm of each group
plot(fit.PCLasso, norm = TRUE)

# plot the individual coefficients
plot(fit.PCLasso, norm = FALSE)
# }

Run the code above in your browser using DataLab