[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[igraph] About plotting communities calculated with outside functions
From: |
Charles Novaes de Santana |
Subject: |
[igraph] About plotting communities calculated with outside functions |
Date: |
Mon, 19 Mar 2012 18:07:00 +0100 |
Dear all,
I am using a self-made function to identify communities in a network.
With this function I obtain in which community each of my vertices are
in (just like a $membership does). I would like to plot my network
representing this communities, just like we can do with the function
plot when we use variable of class "communities". Like this example:
net <- graph.famous("Zachary")
wc <- walktrap.community(net)
plot(wc, net)
Considering I have the network "g" and the "membership" and "csize"
variables of my network (as below), what should I do to plot my
network as beautiful as I would do using the previous example? Which
other information should I need?
net<-graph.ring(10)
membership<-c(1,1,1,2,2,2,3,3,3,3)
csize<-c(3,3,4)
Thanks in advance for any help,
All the best,
Charles
--
Um axé! :)
--
Charles Novaes de Santana
http://www.imedea.uib-csic.es/~charles
PhD student - Global Change
Laboratorio Internacional de Cambio Global
Department of Global Change Research
Instituto Mediterráneo de Estudios Avanzados(CSIC/UIB)
Calle Miquel Marques 21, 07190
Esporles - Islas Baleares - España
Office phone - +34 971 610 896
Cell phone - +34 660 207 940
- [igraph] About plotting communities calculated with outside functions,
Charles Novaes de Santana <=