[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] cohesive blocks
From: |
Gabor Csardi |
Subject: |
Re: [igraph] cohesive blocks |
Date: |
Thu, 24 Jan 2008 20:40:14 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Thu, Jan 24, 2008 at 12:14:59PM +0100, Simone Gabbriellini wrote:
> Hello,
>
> I am trying to use the cohesive blocks function. Everything works
> well, but I am experiencing some problem plotting the
> results.. is it possible to plot a graph with the labels name?
> I have:
> > V(cosgarfa)$id
> [1] "Ghibli" "Mis_CastGarf" "GS_Fosc" "AssCarnev"
> [5] "Pluto" "Avo" "Avisvagli" "CAI"
> [9] "AIDO" "ACAT" "Fortezza" "Mis_PaS"
> [13] "FIR" "CoordCB" "FratresGall" "Mis_careg"
> [17] "Antea" "Mis_Gall" "FratresVdS" "FratresCG"
> [21] "Mis_CG" "FratresVagli" "Mis_Gorf" "Mis_Minucc"
> [25] "AuserMInucc" "AuserGall" "Mis_Vagli" "Mis_Camp"
> [29] "FratresCastG" "FratresPaS" "FratresCasat" "FratresCareg"
> [33] "FratresFosc" "FratresBol" "FratresSRoma" "FratresSil"
> [37] "FratresRog" "ProtcivMol" "Autieri" "RadioCB"
> [41] "CRI" "ARCI" "ADAL" "FiloArianna"
> [45] "DISMA" "CAV Pieve" "Anpas"
>
> but when I use:
>
> plot.bgraph(cosgarfa, vertex.size=10, labels=V(cosgarfa)$id)
>
> it doesn't works, it doesn't plot the names as labels.
Simone, the name of that argument should be vertex.label. Ie.
plot(cosgarfa, vertex.size=10, vertex.label=V(cosgarfa)$id)
(You don't need to explicitly write plot.bgraph, the object has
class "bgraph".)
> Second point: is it possible to underline in the plot the cut points
> of each block?
You mean to underline the labels? Theoretically possible, but i'm not
sure it is worth. You would need to generate the layout first,
and do the underlining via "segments" based on the sizes of the labels.
It is an easier solution to set the fonts to italic and/or bold via
'vertex.label.font'. Unfortunately the white label color is hardwired
into plot.bgraph, this should be changed....
G.
> thank you,
> Simone
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
--
Csardi Gabor <address@hidden> UNIL DGM