Skip to contents

Base R plotting

Plotting based on ggplot2

soplot() sn_render()
Plot Cograph Network
sn_ggplot()
Convert Network to ggplot2
sn_save_ggplot()
Save as ggplot2

Transition Network Analysis

from_tna()
Convert a tna object to cograph parameters
plot_tna() tplot()
TNA-Style Network Plot (qgraph Compatible)
plot_htna() htna()
Plot Heterogeneous TNA Network (Multi-Group Layout)

Multi-Cluster TNA Network Plot

plot_mtna() mtna()
Multi-Cluster TNA Network Plot

Multilevel Network Visualization

plot_mlna() mlna()
Multilevel Network Visualization

Wrangling

Reshaping a network: selecting, thresholding, restructuring and editing. Every verb takes any supported input and returns a cograph_network.

network_wrangling
Network Wrangling Verbs
as_cograph() to_cograph() as.data.frame(<cograph_network>)
Convert to Cograph Network
filter_edges() subset_edges()
Filter Edges by Metadata
filter_nodes() subset_nodes()
Filter Nodes by Metadata or Centrality
select_nodes()
Select Nodes
select_edges()
Select Edges
select_neighbors()
Select Node Neighbors (Ego Network)
select_component()
Select Connected Component
select_top()
Select Top N Nodes by Centrality
select_bridges()
Select Bridge Edges
select_top_edges()
Select Top N Edges
select_edges_involving()
Select Edges Involving Nodes
select_edges_between()
Select Edges Between Node Sets
select_k_core()
Select the k-Core of a Network
split_components()
Split a Network into Its Connected Components
threshold_edges()
Threshold Edges by Weight, Count, Proportion or Density
binarize()
Binarize Edge Weights
symmetrize()
Symmetrize a Directed Network
normalize_weights()
Normalize Edge Weights
invert_weights()
Invert Edge Weights (Similarity to Distance and Back)
to_undirected()
Convert a Directed Network to Undirected
to_directed()
Convert an Undirected Network to Directed
reverse_edges()
Reverse Edge Direction
remove_isolates()
Remove Isolated Nodes
contract_nodes()
Contract Nodes into Groups
spanning_tree()
Minimum or Maximum Spanning Tree
complement_network()
Complement of a Network
reorder_nodes()
Reorder the Nodes of a Network
rename_nodes()
Rename Nodes
add_nodes()
Add Nodes to a Network
remove_nodes()
Remove Nodes from a Network
add_edges()
Add Edges to a Network
remove_edges()
Remove Edges from a Network
mutate_nodes()
Add or Change Node Attributes
mutate_edges()
Add or Change Edge Attributes
bind_networks()
Combine Two Networks
simplify()
Simplify a Network

Network functions

cograph()
Create a Network Visualization
as_cograph() to_cograph() as.data.frame(<cograph_network>)
Convert to Cograph Network
get_nodes() get_edges() get_labels() get_source() get_data() get_meta() set_nodes() set_edges() set_layout() set_groups() get_groups() nodes() is_directed() n_nodes() n_edges()
Access and Modify a Cograph Network
sn_edges()
Set Edge Aesthetics
sn_ggplot()
Convert Network to ggplot2
sn_nodes()
Set Node Aesthetics
sn_save()
Save Network Visualization
from_qgraph()
Convert a qgraph object to cograph parameters

Palettes

Shapes

Themes

Layouts

Plotting analysis results

Motif Analysis

motif_census()
Network Motif Analysis
motifs() as.data.frame(<cograph_motif_result>)
Network Motif Analysis
extract_motifs()
Extract Motifs from Network Data
extract_triads()
Extract Triads with Node Labels
triad_census()
Triad Census

All Other Functions

centrality()
Calculate Network Centrality Measures
centrality_access_information() centrality_hide_information()
Access and Hide Information
centrality_adaptive_leaderrank()
Adaptive LeaderRank
centrality_alpha()
Alpha Centrality
centrality_authority() centrality_hub()
HITS Authority and Hub Scores
centrality_average_distance()
Average Distance
centrality_barycenter()
Barycenter Centrality
centrality_beta_measure()
Beta Measure
centrality_betweenness()
Betweenness Centrality
centrality_bottleneck()
Bottleneck Centrality
centrality_bridging()
Bridging Centrality
centrality_bridging_capital()
Bridging Capital
centrality_brokerage_coordinator()
Coordinator Brokerage
centrality_brokerage_gatekeeper()
Gatekeeper Brokerage
centrality_brokerage_itinerant()
Itinerant Brokerage
centrality_brokerage_liaison()
Liaison Brokerage
centrality_brokerage_representative()
Representative Brokerage
centrality_cda()
Clustering Degree Algorithm
centrality_centroid()
Centroid Value
centrality_closeness() centrality_incloseness() centrality_outcloseness()
Closeness Centrality
centrality_closeness_vitality()
Closeness Vitality
centrality_clusterrank()
ClusterRank
centrality_coleman_theil()
Coleman-Theil Hierarchy Index
centrality_communicability()
Communicability Centrality
centrality_communicability_betweenness()
Communicability Betweenness
centrality_community_based() centrality_comm_centrality() centrality_community_mediator()
Community-Based Centralities
centrality_community_hub_bridge()
Community Hub-Bridge Centrality
centrality_constraint()
Burt's Constraint
centrality_controlrank()
ControlRank Centrality
centrality_coreness()
Coreness
centrality_cross_clique()
Cross-Clique Connectivity
centrality_current_flow_betweenness()
Current-Flow Betweenness
centrality_current_flow_closeness()
Current-Flow Closeness
centrality_dangalchev()
Dangalchev Closeness
centrality_decay()
Decay Centrality
centrality_degree() centrality_indegree() centrality_outdegree()
Degree Centrality
centrality_degree_discount() centrality_single_discount()
DegreeDiscountIC and SingleDiscount
centrality_diffusion()
Diffusion Centrality
centrality_diffusion_centrality()
Diffusion Centrality
centrality_dil()
Degree and Importance of Lines
centrality_distance_entropy()
Distance Entropy
centrality_diversity()
Diversity Centrality
centrality_dkgm()
DK-Based Gravity Model
centrality_dmnc()
Density of Maximum Neighborhood Component
centrality_dynamical_importance()
Dynamical Importance
centrality_dynamics_sensitive()
Dynamics-Sensitive Centrality
centrality_eccentricity() centrality_ineccentricity() centrality_outeccentricity()
Eccentricity
centrality_effective_size()
Effective Size
centrality_ehcc()
Extended Hybrid Characteristic Centrality
centrality_eigenvector()
Eigenvector Centrality
centrality_entropy()
Entropy Centrality
centrality_entropy_variation()
Entropy Variation
centrality_exogenous()
Exogenous Centrality
centrality_expected()
Expected Centrality
centrality_expected_force()
Expected Force Centrality
centrality_expected_influence_1()
One-Step Expected Influence
centrality_expected_influence_2()
Two-Step Expected Influence
centrality_extended_coreness()
Extended Neighborhood Coreness
centrality_extended_gravity()
Extended Gravity Centrality
centrality_extended_local_bridging()
Extended Local Bridging Centrality
centrality_extended_mixed_gravity()
Extended Mixed Gravitational Centrality
centrality_flow_betweenness()
Flow Betweenness
centrality_gateway()
Gateway Coefficient
centrality_generalized_closeness()
Generalized Closeness
centrality_gilschmidt()
Gil-Schmidt Power Index
centrality_global_structure()
Global Structure Model Centrality
centrality_graph_regularization()
Graph Regularization Centrality
centrality_gravity()
Gravity Centrality
centrality_harary()
Harary Centrality
centrality_harmonic() centrality_inharmonic() centrality_outharmonic()
Harmonic Centrality
centrality_hcc()
Hybrid Characteristic Centrality
centrality_heatmap() centrality_flow_coefficient() centrality_local_entropy() centrality_weighted_h_index() centrality_redundancy()
Heatmap, Flow Coefficient, Local Entropy, Weighted h-index and Redundancy
centrality_hubbell()
Hubbell Centrality
centrality_hybrid_global_structure()
Hybrid Global Structure Model Centrality
centrality_iec()
Immediate Effects Centrality
centrality_iira()
Improved Iterative Resource Allocation
centrality_improved_closeness()
Improved Closeness Centrality
centrality_improved_global_structure()
Improved Global Structure Model Centrality
centrality_information()
Information Centrality
centrality_integration()
Integration Centrality
centrality_ira()
Iterative Resource Allocation
centrality_katz()
Katz Centrality
centrality_ked()
KED Centrality
centrality_kreach()
Geodesic K-Reach Centrality
centrality_lac()
Local Average Connectivity
centrality_laplacian()
Laplacian Centrality
centrality_leaderrank()
LeaderRank Centrality
centrality_length_scaled_betweenness() centrality_delta_betweenness() centrality_ego_betweenness() centrality_delta_closeness()
Length-Scaled, Delta and Ego Betweenness, and Delta Closeness
centrality_leverage()
Leverage Centrality
centrality_lhc()
Lhc Index
centrality_lin()
Lin Centrality
centrality_linerank()
LineRank Centrality
centrality_lnc()
Local Neighbor Contribution Centrality
centrality_load()
Load Centrality
centrality_lobby()
Lobby Index
centrality_local_bridging()
Local Bridging Centrality
centrality_local_dimension()
Local Dimension
centrality_local_dimension_fixed() centrality_fuzzy_local_dimension() centrality_local_volume_dimension()
Fixed-Radius, Fuzzy and Volume Local Dimensions
centrality_local_efficiency() centrality_s_core() centrality_fragmentation() centrality_kpath() centrality_epc()
Local Efficiency, s-Core, Fragmentation, k-Path and EPC
centrality_local_information_dimension()
Local Information Dimensionality
centrality_localized_bridging()
Localized Bridging Centrality
centrality_malatya()
Malatya Centrality
centrality_map_equation()
Map Equation Centrality
centrality_markov()
Markov Centrality
centrality_mcc()
Maximal Clique Centrality
centrality_mcgm()
Multi-Characteristics Gravity Model Centrality
centrality_mixed_gravity()
Mixed Gravitational Centrality
centrality_mnc()
Maximum Neighborhood Component
centrality_modified_expected_force()
Modified Expected Force Centrality
centrality_modularity_vitality()
Modularity Vitality
centrality_ncvoterank()
NCVoteRank
centrality_neighbor_distance()
Neighborhood Centrality
centrality_neighborhood_connectivity()
Neighborhood Connectivity
centrality_ninl()
Node and Neighbor Layer Information Centrality
centrality_node_contraction() centrality_node_contraction_improved()
Node Contraction Centrality
centrality_pagerank()
PageRank Centrality
centrality_pairwisedis()
Pairwise Disconnectivity
centrality_participation()
Participation Coefficient
centrality_percolation()
Percolation Centrality
centrality_power()
Bonacich Power Centrality
centrality_prestige_domain()
Domain Prestige
centrality_prestige_domain_proximity()
Domain Proximity Prestige
centrality_proximal_betweenness()
Proximal Betweenness Centrality
centrality_radiality()
Radiality Centrality
centrality_random_walk()
Random Walk Centrality
centrality_random_walk_decay()
Random Walk Decay Centrality
centrality_reaching_local()
Local Reaching Centrality
centrality_relative_entropy()
Relative-Entropy Integrated Evaluation
centrality_residual_closeness()
Residual Closeness Centrality
centrality_resistance_curvature()
Resistance Curvature
centrality_rsp_betweenness()
Randomized Shortest Paths Betweenness Centrality
centrality_rumor()
Rumor Centrality
centrality_s_shell()
s-shell Index
centrality_salsa()
SALSA Authority Centrality
centrality_semilocal()
Semi-Local Centrality
centrality_shapley_game1() centrality_shapley_game2() centrality_shapley_game3()
Shapley Value Centrality
centrality_spectralrank()
SpectralRank Centrality
centrality_strength() centrality_instrength() centrality_outstrength()
Strength Centrality
centrality_stress()
Stress Centrality
centrality_subgraph()
Subgraph Centrality
centrality_topological_coefficient()
Topological Coefficient
centrality_transitivity()
Local Transitivity
centrality_truss() centrality_mdd() centrality_bridging_coefficient() centrality_godfather() centrality_support()
Truss, Mixed-Degree Decomposition, Bridging Coefficient, Godfather and Support
centrality_trust_pagerank()
Trust-PageRank
centrality_two_way_rw()
Two-Way Random Walk Betweenness
centrality_volume()
Volume Centrality
centrality_voterank()
VoteRank Centrality
centrality_weighted_kshell() centrality_renewed_coreness() centrality_geodesic_kpath()
Weighted k-shell, Renewed Coreness and Geodesic k-path
centrality_weighted_leaderrank()
Weighted LeaderRank
centrality_wiener()
Wiener Index Centrality
centrality_within_module_z()
Within-Module Degree Z-Score
centrality_wvoterank() centrality_enrenew() centrality_voterank_plus()
WVoteRank, EnRenew and VoteRank++
centrality_x_degree()
X-Degree Centrality
community_consensus() com_consensus()
Consensus Community Detection
community_edge_betweenness() com_eb()
Edge Betweenness Community Detection
community_fast_greedy() com_fg()
Fast Greedy Community Detection
community_fluid() com_fl()
Fluid Communities Detection
community_infomap() com_im()
Infomap Community Detection
community_label_propagation() com_lp()
Label Propagation Community Detection
community_leading_eigenvector() com_le()
Leading Eigenvector Community Detection
community_leiden() com_ld()
Leiden Community Detection
community_louvain() com_lv()
Louvain Community Detection
community_optimal() com_op()
Optimal Community Detection
community_sizes()
Get Community Sizes
community_spinglass() com_sg()
Spinglass Community Detection
community_walktrap() com_wt()
Walktrap Community Detection
select_bridges()
Select Bridge Edges
select_component()
Select Connected Component
select_edges()
Select Edges
select_edges_between()
Select Edges Between Node Sets
select_edges_involving()
Select Edges Involving Nodes
select_k_core()
Select the k-Core of a Network
select_neighbors()
Select Node Neighbors (Ego Network)
select_nodes()
Select Nodes
select_top()
Select Top N Nodes by Centrality
select_top_edges()
Select Top N Edges
filter_edges() subset_edges()
Filter Edges by Metadata
filter_nodes() subset_nodes()
Filter Nodes by Metadata or Centrality
network_bridges()
Bridge Edges
network_clique_size()
Largest Clique Size
network_cut_vertices()
Cut Vertices (Articulation Points)
network_girth()
Network Girth (Shortest Cycle Length)
network_global_efficiency()
Global Efficiency
network_local_efficiency()
Local Efficiency
network_radius()
Network Radius
network_rich_club()
Rich Club Coefficient
network_small_world()
Small-World Coefficient (Sigma)
network_summary()
Network-Level Summary Statistics
network_vertex_connectivity()
Network Vertex Connectivity
network_wrangling
Network Wrangling Verbs
as_cograph() to_cograph() as.data.frame(<cograph_network>)
Convert to Cograph Network
to_data_frame() to_df()
Export Network as Edge List Data Frame
to_directed()
Convert an Undirected Network to Directed
to_igraph()
Convert Network to igraph Object
to_matrix()
Convert Network to Adjacency Matrix
to_network()
Convert Network to statnet network Object
to_undirected()
Convert a Directed Network to Undirected
plot(<cograph_communities>) plot(<cograph_core_periphery>) plot(<tna_disparity>) splot.tna_disparity() plot(<cograph_degree_fit>) plot(<cograph_motif_result>) plot_motifs() plot(<cograph_motif_analysis>) plot(<cograph_motifs>) splot.tna_bootstrap() plot_netobject_group() plot_netobject_ml() plot_net_bootstrap_group() plot_net_stability() splot.tna_permutation() splot.group_tna_permutation() plot_permutation() plot_group_permutation() plot(<cograph_rich_club>) plot(<cograph_vulnerability>)
Plot Analysis Results
plot_alluvial()
Plot Alluvial Diagram
plot_bootstrap_forest()
Forest Plot for Bootstrap Network Results
plot_centrality()
Plot Centrality
plot_centrality_compare()
Plot Centrality Comparison
plot_centrality_distribution()
Plot Centrality Distribution
plot_centrality_heatmap()
Plot Centrality Heatmap
plot_chord()
Chord Diagram
plot_compare()
Plot Network Difference (alias of plot_difference)
plot_comparison_heatmap()
Plot Comparison Heatmap
plot_degree_correlation()
Plot Degree-Degree Correlation
plot_difference()
Plot Network Difference
plot_edge_diff_forest()
Forest Plot for Bootstrap Edge Differences
plot_edge_weights()
Plot Edge Weight Distribution
plot_heatmap()
Plot Network as Heatmap
plot_htna() htna()
Plot Heterogeneous TNA Network (Multi-Group Layout)
plot_mcml()
Plot Multi-Cluster Multi-Layer Network
plot_mixed_network()
Plot Mixed Network
plot_ml_heatmap()
Multilayer Network Heatmap
plot_mlna() mlna()
Multilevel Network Visualization
plot_mtna() mtna()
Multi-Cluster TNA Network Plot
plot_network_evolution()
Plot Network Evolution (Small Multiples)
plot_robustness()
Plot Network Robustness
plot_simplicial()
Simplicial Complex Visualization
plot_temporal()
Temporal Network Prism (3D Glass Box)
plot_tna() tplot()
TNA-Style Network Plot (qgraph Compatible)
plot_trajectories()
Plot Individual Trajectories
plot_transitions()
Plot Transitions Between States
CographLayout
CographLayout R6 Class
CographNetwork
CographNetwork R6 Class
CographTheme
CographTheme R6 Class
aggregate_layers() lagg()
Aggregate Layers
aggregate_weights() wagg()
Aggregate Edge Weights
cluster_quality() cqual()
Cluster Quality Metrics
csum()
Cluster Summary Statistics
summarize_clusters()
Build MCML from Raw Transition Data
cograph-package
cograph: Modern Network Visualization for R
color_communities()
Color Nodes by Community
communities()
Community Detection
compare_communities()
Compare Community Structures
degree_distribution()
Degree Distribution Visualization
detect_communities()
Detect Communities in a Network
edge_centrality() edge_betweenness()
Calculate Edge Centrality Measures
get_edge_list()
Extract Raw Edge List from TNA Model
get_nodes() get_edges() get_labels() get_source() get_data() get_meta() set_nodes() set_edges() set_layout() set_groups() get_groups() nodes() is_directed() n_nodes() n_edges()
Access and Modify a Cograph Network
register_shape() get_shape() list_shapes() register_svg_shape() list_svg_shapes() unregister_svg_shape()
Node Shapes
ggplot_robustness()
Compare Network Robustness (ggplot2)
is_tna_network()
Check if Network is TNA-based
membership()
Get Community Membership
mcml()
Deprecated Alias for csum
n_communities()
Get Number of Communities
robustness()
Network Robustness Analysis
robustness_auc()
Calculate Area Under Robustness Curve (AUC)
robustness_summary()
Summary of Robustness Analysis
supra_adjacency() supra()
Supra-Adjacency Matrix
supra_interlayer() extract_interlayer()
Extract Inter-Layer Block
supra_layer() extract_layer()
Extract Layer from Supra-Adjacency Matrix
verify_with_igraph() verify_igraph()
Verify Against igraph
layer_degree_correlation() ldegcor()
Degree Correlation Between Layers
layer_similarity() lsim()
Layer Similarity
layer_similarity_matrix() lsim_matrix()
Pairwise Layer Similarities
splot.net_bootstrap() splot.tna_communities() splot.cograph_communities() splot.net_mlvar() splot.netobject() splot.boot_glasso() splot.wtna_mixed() splot.net_permutation() splot()
Base R Graphics Network Plotting
abbrev_label() label_abbrev()
Abbreviate Labels
add_edges()
Add Edges to a Network
add_nodes()
Add Nodes to a Network
as_mcml()
Convert to mcml
as_tna()
Convert cluster_summary to tna Objects
assortativity()
Degree Assortativity Coefficient
assortativity_attribute() homophily()
Attribute Assortativity (Homophily)
binarize()
Binarize Edge Weights
bind_networks()
Combine Two Networks
centralization()
Centralization index
cluster_significance() csig()
Test Significance of Community Structure
cograph()
Create a Network Visualization
complement_network()
Complement of a Network
contract_nodes()
Contract Nodes into Groups
core_periphery()
Detect Core-Periphery Structure
disparity_filter()
Disparity Filter
dispersion()
Dispersion (Backstrom-Kleinberg 2014)
dyad_census()
Dyad Census
edge_reciprocity()
Edge Reciprocity
ego_networks()
Ego-Network Metrics
estrada_index()
Estrada Index
extract_motifs()
Extract Motifs from Network Data
extract_triads()
Extract Triads with Node Labels
fit_degree_distribution()
Fit Statistical Distributions to Degree Sequence
from_qgraph()
Convert a qgraph object to cograph parameters
from_tna()
Convert a tna object to cograph parameters
group_centrality()
Group Centrality (Everett-Borgatti 1999)
coding coding_detailed ai_coding ai_detailed human_ai human_ai_detailed
Human-AI Interaction Coding Sequences
invert_weights()
Invert Edge Weights (Similarity to Distance and Back)
is_bipartite()
Check if a Matrix Could Be Bipartite
k_shortest_paths()
Find K Shortest Loopless Paths (Yen's Algorithm)
layout_circle()
Circular Layout
layout_groups()
Group-based Layout
layout_oval()
Oval Layout
register_layout() get_layout() list_layouts()
Layout Registry
layout_saqr()
Saqr Layout (Start/End transition flow)
layout_spring()
Fruchterman-Reingold Spring Layout
layout_target()
Target Layout (focal-node, topological)
list_centralities()
Catalogue of the Centrality Measures
motif_census()
Network Motif Analysis
motifs() as.data.frame(<cograph_motif_result>)
Network Motif Analysis
mutate_edges()
Add or Change Edge Attributes
mutate_nodes()
Add or Change Node Attributes
neighborhood_overlap()
Neighborhood Overlap (Jaccard) for Each Edge
normalize_weights()
Normalize Edge Weights
overlay_communities()
Overlay Community Blobs on a Network Plot
list_palettes() palette_rainbow() palette_colorblind() palette_pastel() palette_viridis() palette_blues() palette_reds() palette_diverging()
Color Palettes
panel_layout()
Configure a custom multi-panel layout
project_bipartite()
Project Bipartite Network to One-Mode
reaching_global()
Global Reaching Centrality (Mones, Vicsek & Vicsek 2012)
regulation_net
Learning Regulation Transition Network
remove_edges()
Remove Edges from a Network
remove_isolates()
Remove Isolated Nodes
remove_nodes()
Remove Nodes from a Network
rename_nodes()
Rename Nodes
render-ggplot
ggplot2 Conversion
render-grid
Grid Rendering
reorder_nodes()
Reorder the Nodes of a Network
reverse_edges()
Reverse Edge Direction
rich_club()
Rich Club Coefficient
rich_club_local()
Local Rich Club Score
shortest_paths()
Compute Shortest Path Distances
simmelian_strength()
Simmelian Strength (Triangle Count per Edge)
simplify()
Simplify a Network
sn_edges()
Set Edge Aesthetics
sn_ggplot()
Convert Network to ggplot2
sn_layout()
Apply Layout to Network
sn_nodes()
Set Node Aesthetics
sn_palette()
Apply Color Palette to Network
sn_save()
Save Network Visualization
sn_save_ggplot()
Save as ggplot2
sn_theme()
Apply Theme to Network
soplot() sn_render()
Plot Cograph Network
spanning_tree()
Minimum or Maximum Spanning Tree
split_components()
Split a Network into Its Connected Components
student_interactions
Student Interaction Edge List
subgraphs()
Extract Specific Motif Instances (Subgraphs)
summarize_network() cnet()
Summarize Network by Clusters
symmetrize()
Symmetrize a Directed Network
register_theme() get_theme() list_themes() theme_cograph_classic() theme_cograph_colorblind() theme_cograph_gray() theme_cograph_dark() theme_cograph_minimal() theme_cograph_viridis() theme_cograph_nature()
Themes
threshold_edges()
Threshold Edges by Weight, Count, Proportion or Density
triad_census()
Triad Census
trophic_incoherence()
Trophic Incoherence Parameter
vulnerability()
Node Vulnerability