Currently the network visualizations that come from a p2p query are handled by a variety of functions. It would be best to have a single function (network_p2p) acting as a wrapper, with a range of visualization options as parameters (e.g. can color code nodes with both hr attributes or using a community detection algo)
For example:
Default behavior, displays network plot with nodes colored by Organization:
network_p2p(display="hrvar", hrvar="Organization", return="plot", path=NULL)
Option to color code the nodes as a different hrvar:
network_p2p(display="hrvar", hrvar="LevelDesignation")
Option to color code the nodes using a Louvain community detection algorithm:
network_p2p(display="clusters", mode="louvain", return="plot")
Currently the network visualizations that come from a p2p query are handled by a variety of functions. It would be best to have a single function (
network_p2p) acting as a wrapper, with a range of visualization options as parameters (e.g. can color code nodes with both hr attributes or using a community detection algo)For example:
Default behavior, displays network plot with nodes colored by Organization:
Option to color code the nodes as a different hrvar:
Option to color code the nodes using a Louvain community detection algorithm: