Interactive plot of an (un)directed graph | R Documentation |
Interactive plot of an (un)directed graph.
plotnetwork(G, titlos)
G |
The adjacency matrix as produced from |
titlos |
A character argument specifying the title of the graph, for example "PC network". |
This visualises the directed graph.
The plot of the directed graph. This is interactive, in the sense that the user can "play" with it. Move the nodes, zoom it, strectch it etc.
Michail Tsagris
R implementation and documentation: Giorgos Athineou <athineou@csd.uoc.gr> and Michail Tsagris mtsagris@uoc.gr
mmhc.skel, nei, pc.skel, mb
## Not run: # simulate a dataset with continuous data dataset <- matrix( runif(200 * 20, 1, 100), nrow = 200 ) a <- mmhc.skel(dataset, max_k = 3, threshold = 0.05, test = "testIndFisher", nc = 1) plotnetwork(a$G) plotnetwork(a$G, titlos = "DAG skeleton") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.