Learn R Programming

brainGraph (version 2.2.0)

plot.mtpc: Plot statistics from an MTPC analysis

Description

Plot the statistics from an MTPC analysis, along with the maximum permuted statistics. The output is similar to Figure 11 in Drakesmith et al. (2015).

Usage

# S3 method for mtpc
plot(x, contrast = 1L, region = NULL,
  only.sig.regions = TRUE, show.null = TRUE, caption.stats = FALSE, ...)

Arguments

x

A mtpc object

contrast

Integer specifying which contrast to plot results for (default: 1)

region

Character string specifying which region's results to plot; only relevant if level='vertex' (default: NULL)

only.sig.regions

Logical indicating whether to plot only significant regions (default: TRUE)

show.null

Logical indicating whether to plot points of the maximum null statistics (per permutation)

caption.stats

Logical indicating whether to print the MTPC statistics in the caption of the plot (default: FALSE)

...

Unused

Value

A list of ggplot objects

References

Drakesmith M, Caeyenberghs K, Dutt A, Lewis G, David AS, Jones DK (2015). Overcoming the effects of false positives and threshold bias in graph theoretical analyses of neuroimaging data. NeuroImage, 118:313-333.

Examples

Run this code
# NOT RUN {
mtpcPlots <- plot(mtpc.diffs)

## Arrange plots into 3x3 grids
ml <- marrangeGrob(mtpcPlots, nrow=3, ncol=3)
ggsave('mtpc.pdf', ml)
# }

Run the code above in your browser using DataLab