plot.MLGL: Plot the path obtained from 'MLGL' function

View source: R/plot.R

plot.MLGLR Documentation

Plot the path obtained from MLGL function

Description

Plot the path obtained from MLGL function

Usage

## S3 method for class 'MLGL'
plot(x, log.lambda = FALSE, lambda.lines = FALSE, ...)

Arguments

x

MLGL object

log.lambda

If TRUE, use log(lambda) instead of lambda in abscissa

lambda.lines

if TRUE, add vertical lines at lambda values

...

Other parameters for plot function

See Also

MLGL

Examples

# Simulate gaussian data with block-diagonal variance matrix containing 12 blocks of size 5
set.seed(42)
X <- simuBlockGaussian(50, 12, 5, 0.7)
# Generate a response variable
y <- X[, c(2, 7, 12)] %*% c(2, 2, -2) + rnorm(50, 0, 0.5)
# Apply MLGL method
res <- MLGL(X, y)
# Plot the solution path
plot(res)

MLGL documentation built on March 31, 2023, 9:32 p.m.