Learn R Programming

PLEXI (version 1.0.0)

subgraph_difference_plot: Visualization of a difference subgroup using a circular graph

Description

Visualization of a difference subgroup using a circular graph

Usage

subgraph_difference_plot(
  plexi.graph,
  node.importance,
  n.var.nodes = 5,
  n.neigh = 10,
  diff.threshold = 0,
  edge.width = c(0.5, 4)
)

Value

nothing to return

Arguments

plexi.graph

plexi.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.

Examples

Run this code
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)

Run the code above in your browser using DataLab