scudoPlot: Plot scudoNetwork result

Description Usage Arguments Value Author(s) See Also Examples

View source: R/scudoPlot.R

Description

A wrapper to plot.igraph and legend. Can be used to plot the result of scudoNetwork with a color legend.

Usage

1
scudoPlot(net, x = "bottomright", y = NULL, ...)

Arguments

net

an igraph object returned by scudoNetwork

x, y

the x and y coordinates to be used to position the legend. They can be specified by keyword or in any way which is accepted by xy.coords. See Details of legend

...

arguments to be passed to plot.igraph

Value

Returns NULL, invisibly.

Author(s)

Matteo Ciciani matteo.ciciani@gmail.com, Thomas Cantore cantorethomas@gmail.com

See Also

scudoNetwork, plot.igraph

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# generate dummy dataset, run scudoTrain and scudoNetwork
exprData <- data.frame(a = 11:20, b = 16:25,
    c = rev(1:10), d = c(1:2, rev(3:10)))
rownames(exprData) <- letters[11:20]
grps <- as.factor(c("G1", "G1", "G2", "G2"))
nTop <- 2
nBottom <- 3
res <- scudoTrain(exprData, grps, nTop, nBottom, foldChange = FALSE,
    featureSel = FALSE)
net <- scudoNetwork(res, N = 0.5)

# Plot with scudoPlot
scudoPlot(net)

rScudo documentation built on Nov. 8, 2020, 5:07 p.m.