Reputation: 144
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
Upvotes: 2
Views: 179
Reputation: 37661
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)
Upvotes: 1