powered by
This function visualizes the communities detected within a tna object based on different community detection algorithms and their corresponding color mappings.
tna
# S3 method for tna_communities plot(x, colors, method = "spinglass", ...)
A qgraph object in which the nodes are colored by community.
qgraph
A communities object generated by the find_communities method. Each community detection method maps nodes or points in to a specific communities.
communities
find_communities
A character vector of color values used for visualizing community assignments.
character
A character string naming a community detection method to use for coloring the plot. See communities() for details.
communities()
Additional arguments passed to qgraph::qgraph().
qgraph::qgraph()
Pattern-finding functions communities(), plot.tna_comparison()
plot.tna_comparison()
model <- tna(group_regulation) comm <- communities(model) plot(comm, method = "leading_eigen")
Run the code above in your browser using DataLab