plot.criterion: Plot method for object criterion

Description Usage Arguments Value See Also

Description

A plotting method for the class criterion.

Usage

1
2
\S4method{plot}{criterion}(x, y, xvar="lambda1",
log.scale=ifelse(xvar=="lambda1",TRUE,FALSE), plot=TRUE, ...)

Arguments

x

an object with class criterion

y

used for S4 compatibility.

xvar

a character among "lambda1", "fraction" or "df" for the x-axis (only lambda1 is available when the criterion object come from a call to cv.spring).

log.scale

a boolean to put the x-axis on a log-scale.

plot

is TRUE, a plot is produce. Otherwise a ggplot object is sent back.

Value

a invisible ggplot object.

See Also

criterion.


jchiquet/spring documentation built on May 18, 2019, 10:22 p.m.