Generic function which plots any adjacency matrix (assumes DAG)
plot_network(
adja_matrix,
nodename_map = NULL,
edgescale_limits = NULL,
nodesize = 17,
labelsize = 3,
node_color = "white",
node_border_size = 0.5,
arrow_size = 0.05,
scale_edge_width_max = 1,
show_edge_labels = FALSE,
visualize_edge_weights = TRUE,
use_symlog = FALSE,
highlighted_nodes = c(),
legend_title = "edge weight",
value_matrix = NULL,
shadowtext = FALSE,
...
)
Adjacency matrix of network
node names
Limits for scale_edge_color_gradient2 (should contain 0). Useful to make plot comparable to others
Node sizes
Node label sizes
Which color to plot nodes in
Thickness of node's border stroke
Size of edge arrows
Max range for `scale_edge_width`
Whether to show edge labels (DCEs)
Whether to change edge color/width/alpha relative to edge weight
Scale edge colors using dce::symlog
List of nodes to highlight
Title of edge weight legend
Optional matrix of edge weights if different from adjacency matrix
Draw white outline around node labels
additional parameters
plot of dag and dces