将ring igraph图的布局改为一系列水平节点

Change the layout of ring igraph graph to a series of horizontal nodes

我用 igraph 创建了下面的环图。我想知道我是否可以将其默认布局(环)更改为一系列水平节点,一个大的弯曲箭头从最后一个返回到前面,如下所示。第一个是 1,最后一个是 4:

nodes <- data.frame(id = 1:4,label=1:4)
edges <- data.frame(from = c(1,2,3,4), to = c(2,3,4,1))
edges$smooth<-c(F,F,F,T)
edges$label<-c("","","","")

    library(igraph)
net <- graph_from_data_frame(d=edges, vertices=nodes, directed=T) 
plot(net, edge.arrow.size=.4)

使用你的样本图,你可以得到你的图片的近似值

LO = matrix(c(1:4, rep(1,4)), ncol=2)
plot(net, edge.arrow.size=.4, layout = LO, 
    edge.curved = c(0,0,0,-1.1))