search for: colbar

Displaying 2 results from an estimated 2 matches for "colbar".

2011 Apr 11
1
plot - kamada.kawai layout without arrows
Hi, I am plotting a graph with kamada.kawai layout. But I am getting direction arrows in the graphs. Please let me know how to avoid this. g <- watts.strogatz.game(1, 2000, 5, 0.4) comps <- clusters(g)$membership colbar <- rainbow(max(comps)+1) V(g)$color <- colbar[comps+1] png(filename) plot(g, layout=layout.kamada.kawai, vertex.size=2, vertex.label=NA) dev.off() Please find attached the figure with arrows.. http://r.789695.n4.nabble.com/file/n3443258/cdata1_plot.png -- View this message in context: h...
2010 Jun 21
4
S3 generics need identical signature?
...oretical, I have two S3 generics in my package, and one is reported by R CMD check, but the other not, and I fail to see why the difference. Moreover, R CMD check reports: * checking S3 generic/method consistency ... WARNING plot: function(x, ...) plot.communities: function(communities, graph, colbar, col, mark.groups, layout, edge.color, ...) But actually, the signature of plot() seems to be > plot function (x, y, ...) [...] I am confused. What am I missing? Thanks, Best Regards, Gabor -- Gabor Csardi <Gabor.Csardi at unil.ch> UNIL DGM