View source: R/layout-target-saqr.R
| layout_target | R Documentation |
Adapts the flow() layout of qgraph. One node of interest (the
target) is placed alone, and every other node is placed in successive
levels ordered by its unweighted graph distance (number of hops) from the
target. Edge direction is ignored. The layout shows how the target node
connects to the rest of the network.
layout_target(network, target = NULL, horizontal = TRUE, equalize = TRUE, ...)
network |
A |
target |
Node of interest, given as a label (character) or 1-based
index. When |
horizontal |
Logical. If |
equalize |
Logical. If |
... |
Additional arguments (ignored). |
Weights are binarized for layering, so only connectivity matters. Nodes that cannot be reached from the target are placed in one extra level after the last. qgraph raises an error for such nodes.
Data frame with x, y coordinates, one row per node.
layout_target(CographNetwork$new(regulation_net), target = "Plan")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.