plotJGraph: Plot Networks

Description Usage Arguments Details Value Author(s) References Examples

View source: R/plotJGraph.R

Description

Plot multiple networks with specific layout.

Usage

1
plotJGraph(A,fn="Net",th = 1e-06, mylayout = NULL)

Arguments

A

An array of multiple adjacency matrices of networks to be plotted which is a Mxpxp array. M is the number of dataset groups, p is the dimension of variables in each group.

fn

file name to save the network plots. Default to be an string called "Net". NOTE: It should be file name for PDF file.

th

numeric value, default to 1e-06. To specify the threshold if the estimated coefficient between two variables is to be considered connected.

mylayout

graph layout to draw networks, default to NULL.

Details

This function serves as the alternative plotting function to allow users to plot multiple networks with specific layout, such as plotting the simulated networks.

Value

Returns the multiple layout objects from igraph package - numeric matrix of two columns and the rows with the same number as the number of vertices.

Author(s)

Bochao Jiajbc409@gmail.com, Faming liang

References

Jia, B., and Liang, F. (2018). Learning Multiple Gene Regulatory Networks in Type 1 Diabetes through a Fast Bayesian Integrative Method. Submitted to Journal of Statistical Computing.

Examples

1
2
3
4
5
6
7
8
library(equSA)
data(SR0)
data(TR0)
data_all <- vector("list",2)
data_all[[1]] <- SR0
data_all[[2]] <- TR0
A <- JGGM(data_all,ALPHA1=0.05,ALPHA2=0.01)$Array
plotJGraph(A)

equSA documentation built on May 6, 2019, 1:06 a.m.