write.brainnet: Write files to be used for visualization with BrainNet Viewer

Description

This function will write the .node and .edge files necessary for visualization with the BrainNet Viewer software (see Reference below).

Usage

1
2
write.brainnet(g, node.color = c("none", "comm", "comm.wt", "lobe", "comp",
  "network"), node.size = "constant", edge.wt = NULL, file.prefix = "")

Arguments

g

The igraph graph object of interest

node.color

Character string indicating whether to color the vertices or not; can be 'none', 'lobe', 'comm', 'comm.wt', 'comp', or 'network'

node.size

Character string indicating what size the vertices should be; can be any vertex-level attribute (default: 'constant')

edge.wt

Character string indicating the edge attribute to use to return a weighted adjacency matrix

file.prefix

Character string for the basename of the .node and .edge files that are written

Details

For the .node file, there are 6 columns:

The .edge file is the graph's associated adjacency matrix; a weighted adjacency matrix can be returned by using the edge.wt argument.

Author(s)

Christopher G. Watson, cgwatson@bu.edu

References

Xia M, Wang J, He Y (2013). BrainNet Viewer: a network visualization tool for human brain connectomics. PLoS One, 8(7):e68910.

Examples

1
2
3
4
5
## Not run: 
write.brainnet(g, node.color='community', node.size='degree',
  edge.wt='t.stat')

## End(Not run)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.