View source: R/write_brainnet.R
| write_brainnet | R Documentation |
Write the .node and .edge files necessary for visualization
with the BrainNet Viewer software.
write_brainnet(
g,
vcolor = "none",
vsize = "constant",
edge.wt = NULL,
file.prefix = ""
)
g |
The |
vcolor |
Character string indicating how to color the vertices (default:
|
vsize |
Character string indicating what size the vertices should be;
can be any vertex-level attribute (default: |
edge.wt |
Character string indicating the edge attribute to use to
return a weighted adjacency matrix (default: |
file.prefix |
Character string for the basename of the |
For the .node file, there are 6 columns:
Columns 1-3: Vertex x-, y-, and z-coordinates
Column 4: Vertex color
Column 5: Vertex size
Column 6: Vertex label
The .edge file is the graph's associated adjacency matrix; a weighted
adjacency matrix can be returned by using the edge.wt argument.
Christopher G. Watson, cgwatson@bu.edu
Xia, M. and Wang, J. and He, Y. (2013). BrainNet Viewer: a network visualization tool for human brain connectomics. PLoS One, 8(7), e68910. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1371/journal.pone.0068910")}
## Not run:
write_brainnet(g, vcolor='community', vsize='degree', edge.wt='t.stat')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.