plot.path: Plot Exact Solution Paths from a "'path'" Object

Description Usage Arguments Author(s) See Also Examples

View source: R/plot.path.R

Description

plot.path produces the solution paths generated by exact.path.

Usage

1
2
3
## S3 method for class "path"
## S3 method for class 'path'
plot(x, ...)

Arguments

x

an object of class path. See also exact.path.

...

not used.

Author(s)

Kai Wang <kai-wang@uiowa.edu>

See Also

exact.path.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(ncvreg)
data(prostate)
plot(exact.path(as.matrix(prostate[,-9]), prostate$lpsa, verbose=TRUE))

library(ncvreg)
data(heart)
plot(exact.path(as.matrix(heart[,-1]), heart$sbp))

library(lars)
data(diabetes)
plot(exact.path(diabetes$x, diabetes$y, verbose=TRUE))

ExactPath documentation built on May 30, 2017, 5:15 a.m.