R/visualize_association_network.R
visualize_subgraph_structure.Rd
Produces an interactive plot of network structure for all possible subgraph arrangements for passed association pairs with summary statistics to guide exploration of cut-points.
visualize_subgraph_structure( association_pairs, node_info, subgraph_results, trim_subgraph_results = TRUE, warn_of_mismatches = TRUE, width = "100%", height = "800px", default_step = "min_max_rule" )
association_pairs | dataframe with columns |
---|---|
node_info | Optional dataframe that has a column |
subgraph_results | Dataframe of subgraph results as returned by
|
trim_subgraph_results | Should subgraph results after a giant subgraph has taken over be filtered out? Rule for filtering is at least 10% of the variables are in subgraphs and largest subgraph contains less than 95% of all variables in subgraphs. Allows for easier investigating of the subgraph structure over strength. |
warn_of_mismatches | If there are differences in the ids present in
|
width, height | Valid css units for output size (e.g. pixels ( |
default_step | How should the default starting position of the
visualization be decided. Options are |
Interactive javascript visualization of association network subgraphs at all possible cut-points
node_info <- dplyr::rename(virus_host_viruses, id = virus_id) node_info$color <- ifelse(node_info$type == "RNA", "orangered", "steelblue") visualize_subgraph_structure( virus_net, node_info = node_info )#>#>