plot_brain: plot 3d brain network from JointNets result

Description Usage Arguments Details Value Author(s) Examples

View source: R/plot_brain.R

Description

This function plots 3d brain network from JointNets result

Usage

1

Arguments

x

output generated from any one of the JointNets functions

...

additional arguments, please see plot_brain.simule, plot_brain.wsimule and etc for details

Details

The function plots brain network using rglplot.igraph

Value

3d (rgl) brain network

Author(s)

Zhaoyang Wang (Author), Zhaoyang Wang (maintainer) zw4dn@virginia.edu

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
library(JointNets)
graphics.off()
par(ask=FALSE)
par(mfrow=c(1,1))
data(ABIDE_aal116_timeseries)
data(aal116coordinates)
layout = cbind(aal116coordinates$x.mni + 90,
aal116coordinates$y.mni+126, aal116coordinates$z.mni+72)
result = simulation(p=116, s = 0.001, ss = 0.001, n = c(1,1))$simulatedgraphs
class(result) = "simule"
plot_brain(result, type = "task", neighbouroption = "task",
subID = NULL, index = NULL, layout = layout, hasbackground = FALSE)

result = simule(ABIDE_aal116_timeseries, 0.2, 1, covType = "cov", FALSE)
plot_brain(result, type = "task", neighbouroption = "task",
subID = NULL, index = NULL, layout = layout)

QData/JointNets documentation built on Nov. 17, 2019, 3:04 p.m.