如何使用igraph vertex.shape功能
有人使用过igraph的vertex.shape功能吗?这是有希望的,但我无法理解。有人有工作代码的示例吗?垂直方向只是图形中的节点。当你绘制它们时,你可以将它们绘制成矩形、圆形或其他形状。你认为最漂亮的东西 首先查看如何使用igraph vertex.shape功能,r,plot,shape,vertex,igraph,R,Plot,Shape,Vertex,Igraph,有人使用过igraph的vertex.shape功能吗?这是有希望的,但我无法理解。有人有工作代码的示例吗?垂直方向只是图形中的节点。当你绘制它们时,你可以将它们绘制成矩形、圆形或其他形状。你认为最漂亮的东西 首先查看?igraph.vertex.shapes页面上的示例 g <- graph.ring(10, dir=TRUE, mut=TRUE) plot(g, vertex.shape="rectangle", layout=layout.circle) 有关布局参数的允许值,请参
?igraph.vertex.shapes
页面上的示例
g <- graph.ring(10, dir=TRUE, mut=TRUE)
plot(g, vertex.shape="rectangle", layout=layout.circle)
有关
布局
参数的允许值,请参见?布局
。1st thx以获取有效答案<代码>名称(igraph::.igraph.shapes)在我的控制台中生成NULL
,尽管我已经有了igraph
包并加载了它。对于?igraph.vertex.shapes也有一个重定向,它重定向到http://127.0.0.1:27356/library/igraph/html/shapes.html
names(igraph:::.igraph.shapes)
[1] "circle" "square" "csquare" "rectangle" "crectangle"
[6] "vrectangle" "none"