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.

...

Arguments to be passed to methods, such as graphical parameters (see par). Many methods will accept the following arguments:

type

what type of plot should be drawn. Possible types are

  • "p" for points,

  • "l" for lines,

  • "b" for both,

  • "c" for the lines part alone of "b",

  • "o" for both ‘overplotted’,

  • "h" for ‘histogram’ like (or ‘high-density’) vertical lines,

  • "s" for stair steps,

  • "S" for other steps, see ‘Details’ below,

  • "n" for no plotting.

All other types give a warning or an error; using, e.g., type = "punkte" being equivalent to type = "p" for S compatibility. Note that some methods, e.g. plot.factor, do not accept this.

main

an overall title for the plot: see title.

sub

a sub title for the plot: see title.

xlab

a title for the x axis: see title.

ylab

a title for the y axis: see title.

asp

the y/x aspect ratio, see plot.window.

Value

a invisible ggplot object.

See Also

criterion.


spring documentation built on May 2, 2019, 6:09 p.m.