plot_fc: Plot functional connectivity matrix

View source: R/plot_fc.R

plot_fcR Documentation

Plot functional connectivity matrix

Description

Function to create ggplots of either functional connectivity values or p-value matrices from functions such as test_regress

Usage

plot_fc(
  cov,
  lims = c(-max(abs(cov)), max(abs(cov))),
  subgraphs = dimnames(cov)[[1]],
  p.val = FALSE,
  p.method = "BH",
  alpha = 0.05,
  binary = FALSE,
  diag = FALSE,
  log.p = FALSE,
  starchar = "+",
  bin.param = list(color = "red", size = 2.5),
  rect.param = list(alpha = 0, size = 1.25)
)

Arguments

cov

Matrix of either functional connectivity values or derived p-values. Both covariance and correlation matrices are accepted.

lims

Lower and upper bounds to plot. Defaults to being

subgraphs

Vector of subgraph labels. Defaults to the input dimension names.

p.val

Are the elements p-values?

p.method

Method input to p.adjust. One of p.adjust.methods.

alpha

p-value threshold. If NULL, cutoffs are not plotted.

binary

Threshold the p-values based on specified threshold.

diag

Whether to plot diagonal elements.

log.p

Apply negative log-transformation to p-values, overridden by binary = TRUE.

starchar

Which character to use for annotating significant elements.

bin.param

List of graphical parameters passed to geom_text

rect.param

List of graphical parameters passed to geom_rect


andy1764/FCHarmony documentation built on April 4, 2022, 10:41 a.m.