R/visualize_association_network.R
visualize_association_network.Rd
Produces an interactive plot of nodes connected by edges scaled by the strength of association.
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
|
Interactive javascript visualization of association network
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.