Layered layout
Examples
ties <- data.frame(
from = c("A", "A", "B", "C", "D", "F", "F", "E"),
to = c("B", "C", "D", "E", "E", "E", "G", "G"),
stringsAsFactors = FALSE)
coords <- layout_tbl_graph_layered(ties, times = 6)
coords
#> x y
#> A 1 4
#> B 1 3
#> C 2 3
#> D 1 2
#> F 2 4
#> E 1 1
#> G 1 0
