2
votes

I'm trying to plot a directed network that will simply have a thin edge and an arrow. I keep getting an edge that looks triangular. How can I get a simple line and an arrow?

vertice1 <- c("a", "b", "c")
vertice2 <- c("d", "e", "f")

edge.list <- data.frame(vertice1, vertice2)

g <- graph_from_data_frame(d = edge.list, directed=TRUE)

plot(g)

Directed Network with Triangular Edges

1
I cannot replicate this. Did you try in a new/clear R session? Did you set any igraph_options() values? - MrFlick

1 Answers

1
votes

I am not getting the triangle that you got, but I feel certain that is just a large arrow head on the links. Try,

plot(g, edge.arrow.size = 0.5)