brainconn3D | R Documentation |
brainconn
plots and returns a interactive plotly object of plotted brain connectivity matrix..
brainconn3D(
atlas = NULL,
conmat = NULL,
all.nodes = FALSE,
node.color = "network",
node.size = 10,
edge.width = 3,
edge.color = "black",
opacity = 0.28,
d.factor = 1.05,
show.legend = F,
thr = NULL,
uthr = NULL
)
conmat |
A adjacency matrix. Has ti be binary and undirected (i.e. symetric). see example_* data. |
all.nodes |
f |
node.color |
A string that sets the node color. e.g. "blue". If set to "network", then nodes will be colored according to the network column of the atlas |
node.size |
A integer that determines the diameter of the nodes. Can also be a vector of integers with a length equal to the number of ROIs in the atlas |
edge.width |
Number to set the width of the edges. |
edge.color |
A string that sets the edge color. e.g. "blue". |
opacity |
Number between 0-1 to set the transparency of the mesh brain |
d.factor |
An int to change the distance between the nodes and brain surface. |
show.legend |
if |
thr |
a optional value to set a threshold on the conmat (e.g. edges with a weighted value lower than the one set here will not be shown) |
uthr |
a optional value to set a upper threshold on the conmat (e.g. edges with a weighted value higher than the one set here will not be shown) |
a plotly object
Sidhant Chopra
## Not run:
library(brainconn)
brainconn3D(atlas ="schaefer300_n7", conmat=example_unweighted_undirected, show.legend = F)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.