Description Usage Arguments Value Author(s) Examples
plot a network/graph of a symmetric disease similarity matrix, note that a unsymmetric matrix can't be visualized into a network by this method.
1 2 3 4 5 |
simmat |
a symmetric similarity matrix |
cutoff |
a cutoff value, only disease pairs have similarity scores no less than cutoff will be visualized in the network |
vertex.label.font |
label text font |
vertex.label.dist |
label text dist |
vertex.label.color |
label text color |
vertex.label.cex |
label text cex |
vertex.shape |
vertex shape |
vertex.color |
vertex color |
vertex.size |
vertex size |
edge.color |
edge color |
layout |
layout |
an igraph plot object
Peng Ni, Min Li
1 2 3 4 5 6 7 8 9 10 11 12 13 | data(d2g_separation)
data(interactome)
graph_interactome<-graph.data.frame(interactome,directed=FALSE)
ds<-c("myocardial ischemia","myocardial infarction","coronary artery disease",
"cerebrovascular disorders","arthritis, rheumatoid","diabetes mellitus, type 1",
"autoimmune diseases of the nervous system","demyelinating autoimmune diseases, cns",
"respiratory hypersensitivity","asthma","retinitis pigmentosa",
"retinal degeneration","macular degeneration")
sep<-Separation(ds,ds,d2g_separation,graph_interactome)
sim<-Separation2Similarity(sep)
plot_net(sim,cutoff=0.2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.