Description Usage Arguments Details Value Examples
View source: R/visualize_association_network.R
Produces an interactive plot of nodes connected by edges scaled by the strength of association.
| 1 2 3 4 5 6 7 8 | visualize_association_network(
  association_pairs,
  node_info,
  measure_title = "association",
  alphaDecay = 0.01,
  n_neighbors = 5,
  warn_of_mismatches = TRUE
)
 | 
| association_pairs | dataframe with columns  | 
| node_info | Optional dataframe that has a column  | 
| measure_title | Name of measure used to quantify strength of association between the variables. | 
| alphaDecay | Paramter to control how fast the force-layout converges. Lower values mean a better but slower layout, higher means faster. See the d3-force docs for more info. | 
| n_neighbors | How many neighbors for a hovered node should be shown? | 
| warn_of_mismatches | If there are differences in the ids present in
 | 
The plot automatically detects isolated subgraphs (groups of nodes with connections only within the group) and lays them out in a grid to avoid overlap between unrelated parts of the network.
Interactive javascript visualization of association network
| 1 2 | virus_associations <- head(dplyr::arrange(virus_net, dplyr::desc(strength)), 300)
visualize_association_network(virus_associations)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.