Learn R Programming

BANFF (version 1.1)

Plot.Subnetwork: Plotting the Network Feature Selected

Description

This is a supportive function for plotting the network feature according to the outputs of Network.STD and Network.Fast. If the mean of the marginal distribution of a certain node is larger than 0.5, we consider this node as selected.

Usage

Plot.Subnetwork(net,trace)

Arguments

net
an "n" by "n" binary (0/1) adjacent matrix of network configurations, where n=length(pvalue); same as the argument net in function Network.STD() and Network.Fast()
trace
the trace (results of each iteration) generated by the functions Networks.STD() and Networks.Fast().Please set as trace=total$trace where total is the output of the two functions, Networks.STD() and Networks.Fast()

Value

A plot of the network feature selected

Examples

Run this code
library(igraph)
g=barabasi.game(10,power=0.5)
net=as(get.adjacency(g),"matrix")
trace=matrix(c(rep(1,5),rep(0,5)),nrow=1)
Plot.Subnetwork(net,trace)

Run the code above in your browser using DataLab