Netbiov vertex.color vector length error
0
0
Entering edit mode
Wojeff • 0
@wojeff-14309
Last seen 3.7 years ago

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?

netowrk visualization • 987 views
ADD COMMENT

Login before adding your answer.

Traffic: 900 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6