Learn R Programming

brainGraph (version 1.0.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 using a tool outside of R.

Usage

plot_brainGraph_list(g.list, fname.base, diffs = FALSE, ...)

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)
...
Other parameters (passed to plot_brainGraph)

Details

You can choose to highlight edge differences between subsequent list elements; in this case, new/different edges are colored pink. 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.

See Also

Other Plotting functions: plot_brainGraph_gui, plot_brainGraph