View source: R/layout-target-saqr.R
| layout_saqr | R Documentation |
Port of the Dynalytics Desktop "saqr" layout (Saqr et al., LAK25). Designed for directed transition networks: the Start node sits alone on the top row, the End node (if present) alone on the bottom row, and every other node is ranked by its outgoing weight from Start (strongest connections nearest Start) and split into 2 middle rows (<= 10 middle nodes) or 3 (> 10). A sine envelope narrows the rows near Start/End for a lens-shaped silhouette, and the first middle row is zig-zag jittered.
layout_saqr(network, start = "Start", end = "End", jitter = 0.32, ...)
network |
A |
start |
Label of the Start node (default |
end |
Label of the End node (default |
jitter |
Numeric in |
... |
Additional arguments (ignored). |
If the start label is absent the highest out-degree node is used. The
End row is only drawn when the end label is present.
Data frame with x, y coordinates, one row per node.
adj <- matrix(0, 5, 5,
dimnames = list(c("Start", "A", "B", "C", "End"),
c("Start", "A", "B", "C", "End")))
adj["Start", "A"] <- 5; adj["Start", "B"] <- 3; adj["Start", "C"] <- 1
adj["A", "End"] <- 2; adj["B", "End"] <- 4; adj["C", "End"] <- 1
net <- CographNetwork$new(adj, directed = TRUE)
layout_saqr(net)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.