有人用过igraph的vertex.shape功能吗?这个http://cneurocvs.rmki.kfki.hu/igraph/doc/R/igraph.vertex.shapes.html很有前途,但我不能理解。有没有人有工作代码的例子?
发布于 2011-09-15 19:19:55
垂直度只是图中的节点。当您绘制它们时,您可以将它们绘制为矩形、圆形或其他一些形状。你觉得最漂亮的都行。
首先看一下?igraph.vertex.shapes页面上的示例。
g <- graph.ring(10, dir=TRUE, mut=TRUE)
plot(g, vertex.shape="rectangle", layout=layout.circle)vertex.shape参数的允许值由
names(igraph:::.igraph.shapes)
[1] "circle" "square" "csquare" "rectangle" "crectangle"
[6] "vrectangle" "none"有关layout参数的允许值,请参见?layout。
https://stackoverflow.com/questions/7429162
复制相似问题