Skip to contents

Plot the solution paths for a fitted lhsc object.

Usage

# S3 method for class 'lhsc'
plot(x, color=FALSE, ...)

Arguments

x

A fitted “lhsc" model.

color

If TRUE, plots the curves with rainbow colors; otherwise, with gray colors (default).

...

Other graphical parameters to plot.

Details

Plots the solution paths as a coefficient profile plot.

Author

Oh-Ran Kwon and Hui Zou
Maintainer: Oh-Ran Kwon kwon0085@umn.edu

See also

lhsc, predict.lhsc, coef.lhsc, plot.lhsc, and cv.lhsc.

Examples

data(BUPA)
BUPA$X = scale(BUPA$X, center=TRUE, scale=TRUE)
lambda = 10^(seq(-3, 3, length.out=10))
kern = rbfdot(sigma=sigest(BUPA$X))
m1 = lhsc(BUPA$X, BUPA$y, kern, 
  lambda=lambda, eps=1e-5, maxit=1e5)
plot(m1, color=TRUE)