Re: [R] igraph: layout help

2022-06-11 Thread Rui Barradas
Hello, The code below is a hack. First I create a layout ll, then see that vertex K coordinates are in the layout matrix 2nd row. Now, to multiply K's coordinates by a number d>1 will move the point away from A. Add that value to the K group and plot. ll <- layout_with_kk(my.graph) d <-

[R] igraph: layout help

2022-06-11 Thread Brian Smith
Hi, I was trying to make a network plot of this data: library(igraph) library(network) df1 <- data.frame(from="A",to=c("B","C","D","E","F","G"),value=1) df2 <- data.frame(from="K",to=c("L","M","N"),value=1) df3 <- data.frame(from="A",to="K",value=3) my.df <- rbind(df1,df2,df3)