Question: Netbiov vertex.color vector length error
0
gravatar for wuzefeng2008
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
ADD COMMENTlink modified 15 months ago • written 15 months ago by wuzefeng20080
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 416 users visited in the last hour