Description Usage Arguments Details Value Author(s) Examples
This function plots 3d brain network from simule result
1 2 3 4 |
x |
output generated from simule function (simule class) |
type |
type of graph. There are four options:
|
neighbouroption |
determines what type of graph to zoom into when parameter "type" is "neighbour". There are two options:
|
subID |
selects which task to display. There are four options:
|
index |
determines which node(s) to zoom into when parameter "type" is "neighbour". This parameter could either be an integer or vector of integers representing node ids (zoom into one node or multiple nodes) |
hastitle |
determines whether the graph title is displayed or not (TRUE to display / FALSE to hide) |
haslegend |
determines whether the graph legend is displayed or not (TRUE to display / FALSE to hide) |
hasbackground |
determines whether the reference brain is plotted or not (TRUE to display / FALSE to hide) |
... |
extra parameters passed to igraph::rglplot() |
The function plots brain network using rglplot.igraph
3d (rgl) brain network
Zhaoyang Wang (Author), Zhaoyang Wang (maintainer) zw4dn@virginia.edu
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.