plot.brainGraph plots a graph in which the spatial layout of the nodes
is important. The network itself is plotted over a brain MRI slice from the
MNI152 template if mni=TRUE.
# S3 method for brainGraph
plot(x, plane = c("axial", "sagittal", "circular"),
hemi = c("both", "L", "R"), subgraph = NULL, show.legend = FALSE,
rescale = FALSE, asp = 0, main = NULL, subt = "default",
mni = TRUE, ...)plot_brainGraph(x, plane = c("axial", "sagittal", "circular"),
hemi = c("both", "L", "R"), subgraph = NULL, show.legend = FALSE,
rescale = FALSE, asp = 0, main = NULL, subt = "default",
mni = TRUE, ...)
A brainGraph graph object
Character string indicating which orientation to plot
(default: 'axial')
Character string indicating which hemisphere to plot (default:
'both')
Character string specifying an equation for vertices to plot
(default: NULL)
Logical indicating whether or not to show a legend
(default: FALSE)
Logical, whether to rescale the coordinates (default:
FALSE)
Numeric constant; the aspect ratio (default: 0)
Character string; the main title (default: NULL)
Character string; the subtitle (default: default)
Logical indicating whether or not to plot over a slice of the
brain (default: TRUE)
Other parameters (passed to plot.igraph).
See igraph.plotting for details.
With the argument subgraph, you can specify a simple logical equation
for which vertices to show. For example, 'degree > 10' will plot only
vertices with a degree greater than 10. Combinations of AND
(i.e., &) and OR (i.e., |) are allowed.
To remove the subtitle at the bottom, simply specify subt=NULL.
Other Plotting functions: plot.brainGraph_GLM,
plot.brainGraph_NBS,
plot.brainGraph_mediate,
plot.brainGraph_mtpc,
plot_brainGraph_gui,
plot_brainGraph_list,
plot_brainGraph_multi
# NOT RUN {
plot(g[[1]], hemi='R')
plot(g[[1]], subgraph='degree > 10 | btwn.cent > 50')
# }
Run the code above in your browser using DataLab