Learn R Programming

ExactPath (version 1.0)

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

Description

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

Usage

## S3 method for class "path" "plot"(x, ...)

Arguments

x
an object of class path. See also exact.path.
...
not used.

See Also

exact.path.

Examples

Run this code
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))

Run the code above in your browser using DataLab