layout_tbl_graph_layered {autograph}R Documentation

Layered layout

Description

Layered layout

Usage

layout_tbl_graph_layered(.data, center = NULL, circular = FALSE, times = 4)

Arguments

.data

Some {manynet} compatible network data.

center, circular

Extra parameters required for {tidygraph} compatibility.

times

Integer of sweeps that the algorithm will pass through. By default 4.

Value

Returns a table of coordinates.

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

[Package autograph version 0.1.2 Index]