Displays the network contained in an object of class
1 2 3 4
an object of class
network display types (see also details) are
use last node coordinates if
This function plots a graph representation from a
simone.network object. When available, the classification
vector describing a partition of nodes is represented.
Different node layouts (see
type option) can be chosen to
if a single
simone.network object is provided, the
available layouts are
cluster (the default),
(nodes are laid on one circle) and
circles (nodes are laid on
several circles, one circle for a node class);
simone.network objects are provide, the available
4graphs (the default, which displays both
networks as well as the intersection and the difference between
overlap (which overlay two networks, representing common
edges in gray, edges present in the first network in blue and edges
present in the second network in red).
When comparing two networks, the network with the more numerous edges
should be passed as the first argument of
since the node positions for both networks will be computed so as the
first graph is as readable as possible.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
## data set and graph generation lambda <- 0.125 epsilon <- 0.00125 alpha <- c(1/3,1/3,1/3) pi.affi <- matrix(epsilon,3,3) diag(pi.affi) <- lambda g1 <- rNetwork(p=200, pi=pi.affi, alpha=alpha) g2 <- coNetwork(g1, delta=10) plot(g1, type="cluster") # the default plot(g1, type="circle" ) # one circle plot(g1, type="circles" ) # one circle per cluster plot(g1, g2, type="4graphs") # the default for multiple inputs plot(g1, g2, type="overlap") # comparison of 2 networks on an unique graph
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.