Learn R Programming

brainGraph (version 2.7.3)

plot.brainGraph_NBS: Plot a graph with results from the network-based statistic

Description

This is a convenience function for plotting a graph based on results from NBS. There are several default arguments that are set: vertex/edge colors will correspond to connected component membership, and only those vertices in which V(g)$p.nbs > 1 - alpha will be shown. Finally, vertex names will be omitted.

Usage

# S3 method for brainGraph_NBS
plot(x, alpha = 0.05,
  subgraph = paste("p.nbs >", 1 - alpha), vertex.label = NA,
  vertex.color = "color.comp", edge.color = "color.comp",
  subt = NULL, main = paste0("\n\nNBS: ", x$name), cex.main = 2,
  ...)

Arguments

x

A brainGraph_NBS graph object (from make_nbs_brainGraph)

alpha

Numeric; the significance level (default: 0.05)

subgraph

Character string specifying the condition for subsetting the graph. By default, it will show only the vertices which are members of components determined to be significant based on alpha.

vertex.label

Character vector of the vertex labels to be displayed. Default behavior is to omit them.

vertex.color

Character string specifying the vertex attribute to color the vertices by (default: color.comp, which groups vertices by connected component)

edge.color

Character string specifying the edge attribute to color the edges by (default: color.comp, which groups edges by connected component)

subt

Character string; the subtitle (default: default)

main

Character string; the main title (default: NULL)

cex.main

Numeric; the scaling factor for text size; see par (default: 2)

...

Other arguments passed to plot.brainGraph

See Also

Other Plotting functions: plot.brainGraph_GLM, plot.brainGraph_mediate, plot.brainGraph_mtpc, plot.brainGraph, plot_brainGraph_gui, plot_brainGraph_list, plot_brainGraph_multi