igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Plot communities difficulty


From: Gábor Csárdi
Subject: Re: [igraph] Plot communities difficulty
Date: Sun, 11 Nov 2012 00:32:10 -0500

Hi Silvia,

On Fri, Nov 9, 2012 at 9:55 PM, Gmail <address@hidden> wrote:
[...]
> dendPlot(ebc, mode="hclust", hang=-1, use.modularity=TRUE)  This red parameters, at least, give me the error. When I add others I get other errors
Error in xS[[in.k]] : attempt to select less than one element

I cannot reproduce this, so you'll need to send a reproducible example. Thanks.
 

> dendPlot(ebc, mode="hclust", rect=3, colbar=rainbow(rect))
Error in n[1L] : object of type 'closure' is not subsettable

You cannot refer to the supplied value of another function argument this way. You need to explicitly say `colbar=rainbow(3)' or really create a variable called 'rect', and then use that to call the function. E.g.:

library(igraph)
g <- graph.full(5) + graph.full(5) + edge(1,6)
ebc <- edge.betweenness.community(g)

layout(rbind(1:2,3:4))
dendPlot(ebc)
dendPlot(ebc, mode="hclust", hang=-1, use.modularity=TRUE)
dendPlot(ebc, mode="hclust", rect=3, colbar=rainbow(3))

Gabor



Probably is due to my inexperience, but maybe not… can you help? I use Mac

Best,

Silvia

_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help




--
Gabor Csardi <address@hidden>     MTA KFKI RMKI


reply via email to

[Prev in Thread] Current Thread [Next in Thread]