Description Usage Arguments Value Examples
View source: R/plotOntoNetwork.R
Plot Network of Ontology Clusters
1 2 3 4 5 6 7 8 9 10 11 | plotOntoNetwork(
oc,
layout = "kk",
size_ontology = 3,
size_label_ontology = 2,
alpha_edge = 0.2,
alpha_node = 1,
facet_by = NULL,
background = TRUE,
label_n = 4
)
|
oc |
|
layout |
Network layout. See |
size_ontology |
Size of ontology (node) terms. Default is 3. |
size_label_ontology |
Size of ontology (node) term labels. Default is 2. |
alpha_edge |
Transparency parameter for edges (link communities). Default is 0.2. |
alpha_node |
Transparency parameter for nodes (ontology clusters). Default is 1 (fully opaque). |
facet_by |
Facets to draw. Default is NULL, thus no facets are drawn. It can be 'ontology_cluster' or 'link_community' |
background |
Keep the nodes/edges in the background when facetted. Default is TRUE. If FALSE, only edges/nodes that connects each ontology-cluster/link-community will be drawn. |
label_n |
Print top words to the facet labels. Default is 4. If NULL, NA or <=0, no words will be labelled. |
ggraph
plot
1 2 3 4 5 6 7 8 9 10 | ## Not run:
ontology.id <- sample_data$GOBP$ID[1:50]
network <- createOntologyNetwork(ontology.id, method = "jaccard", weighted = FALSE)
lc <- getLC(network)
oc <- getOntoClust(lc)
plotOntoNetwork(oc)
plotOntoNetwork(oc, facet_by = c("ontology_cluster", "link_community")[1])
plotOntoNetwork(oc, facet_by = c("ontology_cluster", "link_community")[1], background = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.