traceplot: Plot the coefficient or stability trace for the lasso/elastic...

Description Usage Arguments Author(s) References See Also Examples

View source: R/get.biom.R

Description

The function plots the coefficient or stability traces for the lasso element of a BioMark object.

Usage

1
traceplot(object, ...)

Arguments

object

An object of class BioMark.

...

Further plotting arguments.

Author(s)

Ron Wehrens

References

N. Meinshausen and P. Buhlmann: Stability Selection. J. R. Statist. Soc. B 72, 417-473 (2010)

See Also

get.biom

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
library(BioMark)
data(spikedApples)

mycols <- rep("gray", ncol(spikedApples$dataMatrix))
mycols[spikedApples$biom] <- "red"
myltys <- rep(2, ncol(spikedApples$dataMatrix))
myltys[spikedApples$biom] <- 1

par(mfrow = c(1,2))
apple.coef <- get.biom(X = spikedApples$dataMatrix,
                       Y = factor(rep(0:1, each = 10)),
                       ncomp = 2:3, type = "coef")
traceplot(apple.coef, col = mycols, lty = myltys)

apple.stab <- get.biom(X = spikedApples$dataMatrix,
                       Y = factor(rep(0:1, each = 10)),
                       fmethod = c("vip","lasso"), type = "stab")
traceplot(apple.stab, col = mycols, lty = myltys)

BioMark documentation built on May 2, 2019, 3:01 a.m.

Related to traceplot in BioMark...