View source: R/map_layout_layered.R
layout_tbl_graph_layered | R Documentation |
Layered layout
layout_tbl_graph_layered(.data, center = NULL, circular = FALSE, times = 4)
.data |
Some |
center , circular |
Extra parameters required for |
times |
Integer of sweeps that the algorithm will pass through. By default 4. |
Returns a table of coordinates.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.