layout_tbl_graph_layered: Layered layout

View source: R/map_layout_layered.R

layout_tbl_graph_layeredR 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

autograph documentation built on July 2, 2025, 5:09 p.m.