| cograph | R Documentation |
The main entry point for cograph. Accepts adjacency matrices, edge lists, igraph, statnet network, qgraph, or tna objects and creates a visualization-ready network object.
cograph(
input,
layout = NULL,
directed = NULL,
nodes = NULL,
seed = 42,
simplify = FALSE,
...
)
input |
Network input. Can be:
|
layout |
Layout algorithm name such as "circle", "oval", "spring",
"groups", "grid", "random", "star", "bipartite" or "gephi" (see
|
directed |
Logical. Force directed interpretation. NULL for auto-detect. |
nodes |
Node metadata. Can be NULL or a data frame with node attributes.
If data frame has a |
seed |
Random seed for deterministic layouts. Default 42. Set NULL for random. |
simplify |
Logical or character. Used for tna input only. If FALSE (default), every transition from tna sequence data is a separate edge. If TRUE or a string ("sum", "mean", "max", "min"), duplicate edges are aggregated, and TRUE uses "sum". |
... |
Additional arguments passed to the layout function. |
A cograph_network object. It is a list with the elements
nodes, edges, directed, weights,
data, meta and node_groups.
splot for base R graphics rendering,
soplot for grid graphics rendering,
sn_nodes for node customization,
sn_edges for edge customization,
sn_layout for changing layouts,
sn_theme for visual themes,
sn_palette for color palettes,
from_qgraph and from_tna for converting external objects
cograph(regulation_net) |> splot(layout = "circle")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.