miic.export: Export miic result to different plotting methods

Description Usage Arguments Details Value See Also Examples

View source: R/miic.export.R

Description

This function creates an object built from the result returned by miic that is ready to be fed to different plotting methods.

Usage

1
miic.export(miic.res, method = NULL)

Arguments

miic.res

[a miic graph object] The graph object returned by the miic execution.

method

A string representing the plotting method. Currently only "igraph" is supported.

Details

See the details of specific function for each method. For igraph, see getIgraph.

Value

A graph object adapted to the method.

See Also

getIgraph for details on the igraph exported object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
library(miic)
data(hematoData)

# execute MIIC (reconstruct graph)
miic.res <- miic(
  input_data = hematoData, latent = "yes",
  n_shuffles = 10, conf_threshold = 0.001
)

# Using igraph
if(require(igraph)) {
g = miic.export(miic.res, "igraph")
plot(g) # Default visualisation, calls igraph::plot.igraph()

# Specifying layout (see ?igraph::layout_)
l <-layout_with_kk(g)
plot(g, layout=l)

# Override some graphical parameters
plot(g, edge.curved = .2)
plot(g, vertex.shape="none", edge.color="gray85", vertex.label.color="gray10")
}

miic documentation built on Jan. 13, 2021, 10:34 a.m.

Related to miic.export in miic...