Hi Silvia, On Fri, Nov 9, 2012 at 9:55 PM, Gmail <[email protected]> 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 > [email protected] > https://lists.nongnu.org/mailman/listinfo/igraph-help > > -- Gabor Csardi <[email protected]> MTA KFKI RMKI
_______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
