plotnetwork: Interactive plot of an (un)directed graph

View source: R/plotnetwork.R

Interactive plot of an (un)directed graphR Documentation

Interactive plot of an (un)directed graph

Description

Interactive plot of an (un)directed graph.

Usage

plotnetwork(G, titlos)

Arguments

G

The adjacency matrix as produced from mmhc.skel, pc.skel, pc.con or any other algorithm. This can correspond to an undirected, partially directed or a completely directed graph.

titlos

A character argument specifying the title of the graph, for example "PC network".

Details

This visualises the directed graph.

Value

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.

Author(s)

Michail Tsagris

R implementation and documentation: Giorgos Athineou <athineou@csd.uoc.gr> and Michail Tsagris mtsagris@uoc.gr

See Also

mmhc.skel, nei, pc.skel, mb

Examples

## 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)

MXM documentation built on Aug. 25, 2022, 9:05 a.m.