Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用igraph vertex.shape功能_R_Plot_Shape_Vertex_Igraph - Fatal编程技术网

如何使用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.shape功能吗?这是有希望的,但我无法理解。有人有工作代码的示例吗?

垂直方向只是图形中的节点。当你绘制它们时,你可以将它们绘制成矩形、圆形或其他形状。你认为最漂亮的东西

首先查看
?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"