Learn R Programming

equSA (version 1.2.1)

plotJGraph: Plot Networks

Description

Plot multiple networks with specific layout.

Usage

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 \(M\)x\(p\)x\(p\) 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.

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.

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.

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

Run this code
# NOT RUN {
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)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab