Description Usage Arguments Details Note Author(s) See Also Examples
Displays the network contained in an object of class simone.network
.
1 2 3 4 |
x |
an object of class |
y |
an optional |
type |
network display types (see also details) are
|
last.coord |
use last node coordinates if |
... |
additionnal parameters |
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
represent networks:
if a single simone.network
object is provided, the
available layouts are cluster
(the default), circle
(nodes are laid on one circle) and circles
(nodes are laid on
several circles, one circle for a node class);
if two simone.network
objects are provide, the available
layouts are 4graphs
(the default, which displays both
networks as well as the intersection and the difference between
them) and 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 plot.simone.network
since the node positions for both networks will be computed so as the
first graph is as readable as possible.
G. Grasseau
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.