Question: Netbiov vertex.color vector length error
0
15 months ago by
wuzefeng20080 wrote:

Hi, there,

I am using Netbiov to visualize my  network (igrpah object).  When i was using the mst.plot function, the vertex.color parameter is a color vector, but it seems that it needs a vector with length is less than my vertex number.

For example;

gg<-make_ring(3)  # make a 3-vertex network
mst.plot(gg)  # no problem
mst.plot(gg,vertex.color = c("green","blue")) # also no problem
mst.plot(gg,vertex.color = c("green","blue","black"))  # gave error:
Error in .set.mst.node.col(vertex.color, gt, expression) .

How to solve this problem?

visualization netowrk • 358 views