Learn R Programming

brainGraph (version 0.48.0)

plot_brainGraph: Plot a graph with a specific spatial layout

Description

This function plots a graph when the spatial layout of the nodes is important (e.g. in the brain). It is really just a wrapper for plot.igraph, with some options pre-specified that work for plotting in the brain's layout. This means that set.brainGraph.attributes needs to be run on the graph, and a valid set of coordinates provided for the vertices. Most of the parameters valid here can be seen in igraph.plotting.

Usage

plot_brainGraph(g, rescale = F, ylim = c(-1.5, 1.5), asp = 0,
  main = NULL, ...)

Arguments

g
The graph to plot
rescale
A logical, whether to rescale the coordinates
ylim
A vector giving limits for the vertical axis
asp
A numeric constant for the aspect ratio
main
Character string for the main title
...
Other parameters (passed to plot).