Learn R Programming

brainGraph (version 0.48.0)

plot_brainGraph_list: Write PNG files for a list of graphs

Description

This function takes a list of igraph graph objects and plots them over an axial slice of the brain. A png file is written for each element of the list, which can be joined as a gif or converted to video.

Usage

plot_brainGraph_list(g.list, fname.base, diffs = FALSE, cols = c("none",
  "lobe", "comm"))

Arguments

g.list
A list of igraph graph objects
fname.base
A character string specifying the base of the filename for png output
diffs
A logical, indicating whether or not to highlight edge differences (default: FALSE)
cols
A character string indicating how to color the vertices (default: 'none')

Details

You can choose to highlight edge differences between subsequent list elements, and whether to color vertices by lobe, community membership, or lightblue (the default). By default, the vertex sizes are equal to vertex degree, and max out at 20.

This function may be particularly useful if the graph list contains graphs of a single subject group at incremental densities, or if the graph list contains graphs of each subject in a group.