View source: R/subgraph_plot.R
subgraph_difference_plot | R Documentation |
Visualization of a difference subgroup using a circular graph
subgraph_difference_plot( mnda.graph, node.importance, n.var.nodes = 5, n.neigh = 10, diff.threshold = 0, edge.width = c(0.5, 4) )
mnda.graph |
mnda.graph data |
node.importance |
named numeric vector of the node importance to sort the nodes clockwise. |
n.var.nodes |
number of variable nodes to show |
n.neigh |
number of neighboring nodes to show |
diff.threshold |
edge threshold |
edge.width |
numeric value to adjust the thickness of the edges in plot. Two modes are defined: [i] two numbers indicating the min and max (default: c(0.5,4)); or [ii] a single number that weights the min/max of original edge weights. |
nothing to return
myNet = network_gen(N_nodes = 100, N_var_nodes = 5, N_var_nei = 90, noise_sd = .01) graph_data = myNet[["data_graph"]] node_importance_dummy = 1:100 names(node_importance_dummy) = 1:100 subgraph_difference_plot(graph_data, node.importance = node_importance_dummy)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.