Description Usage Arguments Details Value See Also Examples
This function creates an object built from the result returned
by miic
that is ready to be fed to different plotting methods.
1 | miic.export(miic.res, method = NULL)
|
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. |
See the details of specific function for each method.
For igraph, see getIgraph
.
A graph object adapted to the method.
getIgraph
for details on the igraph exported object.
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")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.