powered by
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).
# S3 method for mtpc plot(x, contrast = 1L, region = NULL, only.sig.regions = TRUE, show.null = TRUE, caption.stats = FALSE, ...)
A mtpc object
mtpc
Integer specifying which contrast to plot results for (default: 1)
Character string specifying which region's results to plot; only relevant if level='vertex' (default: NULL)
level='vertex'
NULL
Logical indicating whether to plot only significant regions (default: TRUE)
TRUE
Logical indicating whether to plot points of the maximum null statistics (per permutation)
Logical indicating whether to print the MTPC statistics in the caption of the plot (default: FALSE)
FALSE
Unused
A list of ggplot objects
ggplot
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.
# 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