igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] plot vertexes with different sizes


From: Tamás Nepusz
Subject: Re: [igraph] plot vertexes with different sizes
Date: Fri, 28 Sep 2012 01:01:46 +0200

> I have a numeric vertex attribute and I want the size of the vertex
> circle to reflect that attribute.
> How do I do that?

In R:

plot(g, vertex.size=V(g)$size)

In Python:

plot(g, vertex_size=g.vs["size"])

Note that this sets the diameter of the vertex to be proportional to the "size" 
attribute; if you want the area to be proportional, take the square root.

-- 
T.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]