Learn R Programming

hmlasso (version 0.0.1)

plot.hmlasso: Plot a solution path

Description

Plot a solution path

Usage

# S3 method for hmlasso
plot(x, xlim = NULL, ylim = NULL, ...)

Arguments

x

hmlasso model

xlim

x range

ylim

y range

...

parameters of matlines function

Examples

Run this code
# NOT RUN {
X_incompl <- as.matrix(iris[, 1:3])
X_incompl[1:5,1] <- NA
X_incompl[6:10,2] <- NA
y <- iris[, 4]
fit <- hmlasso(X_incompl, y, nlambda=50, lambda.min.ratio=1e-2)
plot(fit)

# }

Run the code above in your browser using DataLab