Learn R Programming

apple (version 0.3)

plot.apple: plot apple path

Description

Plot the solution path generated from apple.

Usage

"plot"(x, col = "black", add = FALSE, main = "apple", type = "l", lty = 1, ...)

Arguments

x
the object used to plot the path. object derived by "apple" and "cv.apple" are both available here. for "cv.apple" object, ebic and cv selected solutions are also lined in the graph.
col
color used to plot the paths, for details please see the usage of col in plot.
add
whether or not to add this plot to an existing one.
main
title of the plot. default is main="apple"
type
what type of plot should be drawn, for details please see the usage of plot.
lty
the line type, for details please see the usage of par
...
see matplot.

Details

if the object is a cv result, then both of ebic and cv selected result will be marked on the graph by solid and dotted vertical lines, respectively.

References

Yi Yu and Yang Feng, APPLE: Approximate Path for Penalized Likelihood Estimator, manuscript.

See Also

apple, cv.apple and predict.apple

Examples

Run this code

Run the code above in your browser using DataLab