View source: R/cluster-metrics.R
| summarize_network | R Documentation |
Creates a summary network where each cluster becomes a single node. Edge weights are aggregated from the original network using the specified method, without normalization.
summarize_network(
x,
cluster_list = NULL,
method = c("sum", "mean", "max", "min", "median", "density", "geomean"),
directed = TRUE
)
cnet(
x,
cluster_list = NULL,
method = c("sum", "mean", "max", "min", "median", "density", "geomean"),
directed = TRUE
)
x |
A weight matrix, tna object, or cograph_network. |
cluster_list |
Cluster specification:
|
method |
Aggregation method for edge weights: "sum", "mean", "max", "min", "median", "density", "geomean". Default "sum". |
directed |
Logical. Whether the summary network is directed. Default TRUE. |
A cograph_network object with one node per cluster, labelled by
cluster name. The edge weights are the aggregated between-cluster
weights, and the diagonal holds the aggregated within-cluster weights.
The node table has a size column with the number of original
nodes in each cluster.
csum, plot_mcml
clusters <- list(C1 = c("Explore", "Reflect", "Discuss"),
C2 = c("Plan", "Create", "Share"),
C3 = c("Monitor", "Adapt", "Synthesize", "Evaluate"))
summarize_network(regulation_net, cluster_list = clusters)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.